Struct candle_transformers::models::clip::ClipConfig
source · pub struct ClipConfig {
pub text_config: ClipTextConfig,
pub vision_config: ClipVisionConfig,
pub logit_scale_init_value: f32,
pub image_size: usize,
}
Fields§
§text_config: ClipTextConfig
§vision_config: ClipVisionConfig
§logit_scale_init_value: f32
§image_size: usize
Implementations§
source§impl ClipConfig
impl ClipConfig
pub fn vit_base_patch32() -> Self
Trait Implementations§
source§impl Clone for ClipConfig
impl Clone for ClipConfig
source§fn clone(&self) -> ClipConfig
fn clone(&self) -> ClipConfig
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 ClipConfig
impl RefUnwindSafe for ClipConfig
impl Send for ClipConfig
impl Sync for ClipConfig
impl Unpin for ClipConfig
impl UnwindSafe for ClipConfig
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