pub struct Sam3TextEncoderWeights {Show 14 fields
pub loaded: bool,
pub width: usize,
pub heads: usize,
pub context_length: usize,
pub d_model: usize,
pub vocab_size: usize,
pub token_embedding: Vec<f32>,
pub positional_embedding: Vec<f32>,
pub ln_final_w: Vec<f32>,
pub ln_final_b: Vec<f32>,
pub blocks: Vec<Sam3TextBlock>,
pub resizer_w_t: Vec<f32>,
pub resizer_b: Vec<f32>,
pub resizer_gguf_key: Option<String>,
}Fields§
§loaded: bool§width: usize§heads: usize§context_length: usize§d_model: usize§vocab_size: usize§token_embedding: Vec<f32>§positional_embedding: Vec<f32>§ln_final_w: Vec<f32>§ln_final_b: Vec<f32>§blocks: Vec<Sam3TextBlock>§resizer_w_t: Vec<f32>§resizer_b: Vec<f32>§resizer_gguf_key: Option<String>Trait Implementations§
Source§impl Clone for Sam3TextEncoderWeights
impl Clone for Sam3TextEncoderWeights
Source§fn clone(&self) -> Sam3TextEncoderWeights
fn clone(&self) -> Sam3TextEncoderWeights
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 Default for Sam3TextEncoderWeights
impl Default for Sam3TextEncoderWeights
Source§fn default() -> Sam3TextEncoderWeights
fn default() -> Sam3TextEncoderWeights
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Sam3TextEncoderWeights
impl RefUnwindSafe for Sam3TextEncoderWeights
impl Send for Sam3TextEncoderWeights
impl Sync for Sam3TextEncoderWeights
impl Unpin for Sam3TextEncoderWeights
impl UnsafeUnpin for Sam3TextEncoderWeights
impl UnwindSafe for Sam3TextEncoderWeights
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
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