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 Forget for DecodeTokenHost
impl Freeze for DecodeTokenHost
impl Move for DecodeTokenHost
impl RefUnwindSafe for DecodeTokenHost
impl Send for DecodeTokenHostwhere
RawVecInner: Send,
impl Sync for DecodeTokenHostwhere
RawVecInner: Sync,
impl Unpin for DecodeTokenHost
impl UnsafeUnpin for DecodeTokenHostwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
impl UnwindSafe for DecodeTokenHostwhere
RawVecInner: UnwindSafe,
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