pub struct Sam3PreprocessWeights {
pub patch_proj_w: Vec<f32>,
pub patch_proj_b: Vec<f32>,
pub pos_embed: Option<Vec<f32>>,
pub embed_dim: usize,
pub patch_size: usize,
pub grid: usize,
}Fields§
§patch_proj_w: Vec<f32>Patch projection [patch_dim, embed_dim], transposed for row-major matmul.
patch_proj_b: Vec<f32>§pos_embed: Option<Vec<f32>>§embed_dim: usize§patch_size: usize§grid: usizeTrait Implementations§
Source§impl Clone for Sam3PreprocessWeights
impl Clone for Sam3PreprocessWeights
Source§fn clone(&self) -> Sam3PreprocessWeights
fn clone(&self) -> Sam3PreprocessWeights
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 moreAuto Trait Implementations§
impl Freeze for Sam3PreprocessWeights
impl RefUnwindSafe for Sam3PreprocessWeights
impl Send for Sam3PreprocessWeights
impl Sync for Sam3PreprocessWeights
impl Unpin for Sam3PreprocessWeights
impl UnsafeUnpin for Sam3PreprocessWeights
impl UnwindSafe for Sam3PreprocessWeights
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