pub struct Sam2MaskDownSamplerWeights {
pub levels: Vec<DownSampleLevel>,
pub final_conv_w: Vec<f32>,
pub final_conv_b: Vec<f32>,
pub kernel: usize,
pub stride: usize,
pub padding: usize,
pub embed_dim: usize,
}Fields§
§levels: Vec<DownSampleLevel>Per-level (conv_w, conv_b, ln_g, ln_b) for the down-sampling
Conv → LN2d → GELU pattern.
final_conv_w: Vec<f32>Final 1×1 conv [embed_dim, last_chans].
final_conv_b: Vec<f32>§kernel: usize§stride: usize§padding: usize§embed_dim: usizeAuto Trait Implementations§
impl Freeze for Sam2MaskDownSamplerWeights
impl RefUnwindSafe for Sam2MaskDownSamplerWeights
impl Send for Sam2MaskDownSamplerWeights
impl Sync for Sam2MaskDownSamplerWeights
impl Unpin for Sam2MaskDownSamplerWeights
impl UnsafeUnpin for Sam2MaskDownSamplerWeights
impl UnwindSafe for Sam2MaskDownSamplerWeights
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> 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