pub struct Sam2CXBlockWeights {
pub dw_conv_w: Vec<f32>,
pub dw_conv_b: Vec<f32>,
pub ln_g: Vec<f32>,
pub ln_b: Vec<f32>,
pub pw1_w: Vec<f32>,
pub pw1_b: Vec<f32>,
pub pw2_w: Vec<f32>,
pub pw2_b: Vec<f32>,
pub gamma: Option<Vec<f32>>,
pub dim: usize,
pub kernel: usize,
pub padding: usize,
}Fields§
§dw_conv_w: Vec<f32>§dw_conv_b: Vec<f32>§ln_g: Vec<f32>§ln_b: Vec<f32>§pw1_w: Vec<f32>§pw1_b: Vec<f32>§pw2_w: Vec<f32>§pw2_b: Vec<f32>§gamma: Option<Vec<f32>>LayerScale per-channel gain (optional in reference; present
when layer_scale_init_value > 0).
dim: usize§kernel: usize§padding: usizeAuto Trait Implementations§
impl Freeze for Sam2CXBlockWeights
impl RefUnwindSafe for Sam2CXBlockWeights
impl Send for Sam2CXBlockWeights
impl Sync for Sam2CXBlockWeights
impl Unpin for Sam2CXBlockWeights
impl UnsafeUnpin for Sam2CXBlockWeights
impl UnwindSafe for Sam2CXBlockWeights
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