pub struct DepthDecoder { /* private fields */ }Expand description
The depth decoder and the language model’s speech-frame embedding.
Implementations§
Source§impl DepthDecoder
impl DepthDecoder
pub fn from_model( model: &Arc<CmfModel>, pool: Option<Arc<Pool>>, ) -> Result<Self, String>
Sourcepub fn sample_frame(
&self,
h: &[f32],
s: &AudioSampling,
history: &[[u32; 12]],
rng: &mut SplitMix64,
) -> [u32; 12]
pub fn sample_frame( &self, h: &[f32], s: &AudioSampling, history: &[[u32; 12]], rng: &mut SplitMix64, ) -> [u32; 12]
One speech frame: the codebooks revealed four at a time in a random (or fixed) order, each sampled from its logits under the repetition penalty of its own history.
Auto Trait Implementations§
impl !RefUnwindSafe for DepthDecoder
impl !UnwindSafe for DepthDecoder
impl Freeze for DepthDecoder
impl Send for DepthDecoder
impl Sync for DepthDecoder
impl Unpin for DepthDecoder
impl UnsafeUnpin for DepthDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more