pub struct CodecFrameScratch {
pub hidden: Vec<f32>,
pub codec_emb: Vec<f32>,
pub logits: Vec<f32>,
}Expand description
Reused buffers for the codec-AR inner loop (no per-frame alloc).
Fields§
§codec_emb: Vec<f32>§logits: Vec<f32>Implementations§
Source§impl CodecFrameScratch
impl CodecFrameScratch
pub fn new(hidden: usize, vocab: usize) -> CodecFrameScratch
Auto Trait Implementations§
impl Freeze for CodecFrameScratch
impl RefUnwindSafe for CodecFrameScratch
impl Send for CodecFrameScratch
impl Sync for CodecFrameScratch
impl Unpin for CodecFrameScratch
impl UnsafeUnpin for CodecFrameScratch
impl UnwindSafe for CodecFrameScratch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more