pub struct CLIPConfig {
pub variant: CLIPVariant,
pub image_size: (u32, u32),
pub embedding_dim: usize,
pub normalization: ImageNormalization,
}Expand description
CLIP configuration
Fields§
§variant: CLIPVariantModel variant
image_size: (u32, u32)Input image size
embedding_dim: usizeEmbedding dimension
normalization: ImageNormalizationNormalization parameters
Trait Implementations§
Source§impl Clone for CLIPConfig
impl Clone for CLIPConfig
Source§fn clone(&self) -> CLIPConfig
fn clone(&self) -> CLIPConfig
Returns a duplicate 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