Enum candle_transformers::models::clip::EncoderConfig
source · pub enum EncoderConfig {
Text(ClipTextConfig),
Vision(ClipVisionConfig),
}
Variants§
Text(ClipTextConfig)
Vision(ClipVisionConfig)
Implementations§
source§impl EncoderConfig
impl EncoderConfig
pub fn embed_dim(&self) -> usize
pub fn num_attention_heads(&self) -> usize
pub fn intermediate_size(&self) -> usize
pub fn activation(&self) -> Activation
Trait Implementations§
source§impl Clone for EncoderConfig
impl Clone for EncoderConfig
source§fn clone(&self) -> EncoderConfig
fn clone(&self) -> EncoderConfig
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 EncoderConfig
impl RefUnwindSafe for EncoderConfig
impl Send for EncoderConfig
impl Sync for EncoderConfig
impl Unpin for EncoderConfig
impl UnwindSafe for EncoderConfig
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