pub struct DecodeTokenHost {
pub token_ids: Vec<u32>,
pub rope_cos: Vec<f32>,
pub rope_sin: Vec<f32>,
pub mask: Vec<f32>,
}Expand description
Per-token host data, before it becomes either a baked Const or an upload.
Fields§
§token_ids: Vec<u32>§rope_cos: Vec<f32>§rope_sin: Vec<f32>§mask: Vec<f32>[n_variants, 1, seq, max_seq_len] as f32; converted to the cache dtype
at the Const/upload boundary.
Auto Trait Implementations§
impl Freeze for DecodeTokenHost
impl RefUnwindSafe for DecodeTokenHost
impl Send for DecodeTokenHost
impl Sync for DecodeTokenHost
impl Unpin for DecodeTokenHost
impl UnsafeUnpin for DecodeTokenHost
impl UnwindSafe for DecodeTokenHost
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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