Struct candle_transformers::models::clip::text_model::ClipTextConfig
source · pub struct ClipTextConfig {
pub vocab_size: usize,
pub embed_dim: usize,
pub activation: Activation,
pub intermediate_size: usize,
pub max_position_embeddings: usize,
pub pad_with: Option<String>,
pub num_hidden_layers: usize,
pub num_attention_heads: usize,
pub projection_dim: usize,
}
Fields§
§vocab_size: usize
§embed_dim: usize
§activation: Activation
§intermediate_size: usize
§max_position_embeddings: usize
§pad_with: Option<String>
§num_attention_heads: usize
§projection_dim: usize
Implementations§
source§impl ClipTextConfig
impl ClipTextConfig
pub fn vit_base_patch32() -> Self
Trait Implementations§
source§impl Clone for ClipTextConfig
impl Clone for ClipTextConfig
source§fn clone(&self) -> ClipTextConfig
fn clone(&self) -> ClipTextConfig
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 ClipTextConfig
impl RefUnwindSafe for ClipTextConfig
impl Send for ClipTextConfig
impl Sync for ClipTextConfig
impl Unpin for ClipTextConfig
impl UnwindSafe for ClipTextConfig
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