pub struct Sam2MemoryAttentionWeights {
pub layers: Vec<Sam2MemoryAttentionLayerWeights>,
pub norm_g: Vec<f32>,
pub norm_b: Vec<f32>,
pub d_model: usize,
pub pos_enc_at_input: bool,
}Fields§
§layers: Vec<Sam2MemoryAttentionLayerWeights>§norm_g: Vec<f32>§norm_b: Vec<f32>§d_model: usize§pos_enc_at_input: boolAuto Trait Implementations§
impl Freeze for Sam2MemoryAttentionWeights
impl RefUnwindSafe for Sam2MemoryAttentionWeights
impl Send for Sam2MemoryAttentionWeights
impl Sync for Sam2MemoryAttentionWeights
impl Unpin for Sam2MemoryAttentionWeights
impl UnsafeUnpin for Sam2MemoryAttentionWeights
impl UnwindSafe for Sam2MemoryAttentionWeights
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> 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