Struct candle_transformers::models::clip::vision_model::ClipVisionConfig
source · pub struct ClipVisionConfig {
pub embed_dim: usize,
pub activation: Activation,
pub intermediate_size: usize,
pub num_hidden_layers: usize,
pub num_attention_heads: usize,
pub projection_dim: usize,
pub num_channels: usize,
pub image_size: usize,
pub patch_size: usize,
}
Fields§
§embed_dim: usize
§activation: Activation
§intermediate_size: usize
§num_attention_heads: usize
§projection_dim: usize
§num_channels: usize
§image_size: usize
§patch_size: usize
Implementations§
source§impl ClipVisionConfig
impl ClipVisionConfig
pub fn vit_base_patch32() -> Self
Trait Implementations§
source§impl Clone for ClipVisionConfig
impl Clone for ClipVisionConfig
source§fn clone(&self) -> ClipVisionConfig
fn clone(&self) -> ClipVisionConfig
Returns a copy of the value. Read more
1.0.0 · 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 ClipVisionConfig
impl RefUnwindSafe for ClipVisionConfig
impl Send for ClipVisionConfig
impl Sync for ClipVisionConfig
impl Unpin for ClipVisionConfig
impl UnwindSafe for ClipVisionConfig
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