pub struct Sam3TextEncoded {
pub attention_mask: Vec<u8>,
pub text_memory_resized: Vec<f32>,
pub inputs_embeds: Vec<f32>,
pub seq_len: usize,
pub batch: usize,
pub d_model: usize,
pub width: usize,
}Fields§
§attention_mask: Vec<u8>[batch, seq] byte mask (1 = PAD token).
text_memory_resized: Vec<f32>[seq, batch, d_model] resized text memory.
inputs_embeds: Vec<f32>[seq, batch, width] raw token embeddings.
seq_len: usize§batch: usize§d_model: usize§width: usizeTrait Implementations§
Source§impl Clone for Sam3TextEncoded
impl Clone for Sam3TextEncoded
Source§fn clone(&self) -> Sam3TextEncoded
fn clone(&self) -> Sam3TextEncoded
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Sam3TextEncoded
impl Debug for Sam3TextEncoded
Source§impl Default for Sam3TextEncoded
impl Default for Sam3TextEncoded
Source§fn default() -> Sam3TextEncoded
fn default() -> Sam3TextEncoded
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Sam3TextEncoded
impl RefUnwindSafe for Sam3TextEncoded
impl Send for Sam3TextEncoded
impl Sync for Sam3TextEncoded
impl Unpin for Sam3TextEncoded
impl UnsafeUnpin for Sam3TextEncoded
impl UnwindSafe for Sam3TextEncoded
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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