pub struct Sam3VitConfig {Show 16 fields
pub img_size: usize,
pub pretrain_img_size: usize,
pub patch_size: usize,
pub embed_dim: usize,
pub depth: usize,
pub num_heads: usize,
pub mlp_ratio: f64,
pub qkv_bias: bool,
pub bias_patch_embed: bool,
pub use_abs_pos: bool,
pub tile_abs_pos: bool,
pub use_rope: bool,
pub use_interp_rope: bool,
pub window_size: usize,
pub global_att_blocks: Vec<usize>,
pub layer_norm_eps: f64,
}Fields§
§img_size: usize§pretrain_img_size: usize§patch_size: usize§embed_dim: usize§depth: usize§num_heads: usize§mlp_ratio: f64§qkv_bias: bool§bias_patch_embed: bool§use_abs_pos: bool§tile_abs_pos: bool§use_rope: bool§use_interp_rope: bool§window_size: usize§global_att_blocks: Vec<usize>§layer_norm_eps: f64Implementations§
Source§impl Sam3VitConfig
impl Sam3VitConfig
pub fn base() -> Sam3VitConfig
pub fn patch_grid(&self) -> usize
Trait Implementations§
Source§impl Clone for Sam3VitConfig
impl Clone for Sam3VitConfig
Source§fn clone(&self) -> Sam3VitConfig
fn clone(&self) -> Sam3VitConfig
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 Debug for Sam3VitConfig
impl Debug for Sam3VitConfig
Source§impl<'de> Deserialize<'de> for Sam3VitConfig
impl<'de> Deserialize<'de> for Sam3VitConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sam3VitConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Sam3VitConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Sam3VitConfig
impl RefUnwindSafe for Sam3VitConfig
impl Send for Sam3VitConfig
impl Sync for Sam3VitConfig
impl Unpin for Sam3VitConfig
impl UnsafeUnpin for Sam3VitConfig
impl UnwindSafe for Sam3VitConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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