pub struct ChineseClipConfig {
pub text_config: ChineseClipTextConfig,
pub vision_config: ChineseClipVisionConfig,
pub projection_dim: usize,
pub logit_scale_init_value: f32,
pub image_size: usize,
}Fields§
§text_config: ChineseClipTextConfig§vision_config: ChineseClipVisionConfig§projection_dim: usize§logit_scale_init_value: f32§image_size: usizeImplementations§
Source§impl ChineseClipConfig
impl ChineseClipConfig
Sourcepub fn clip_vit_base_patch16() -> Self
pub fn clip_vit_base_patch16() -> Self
referer: https://huggingface.co/OFA-Sys/chinese-clip-vit-base-patch16/blob/main/config.json
Trait Implementations§
Source§impl Clone for ChineseClipConfig
impl Clone for ChineseClipConfig
Source§fn clone(&self) -> ChineseClipConfig
fn clone(&self) -> ChineseClipConfig
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 ChineseClipConfig
impl RefUnwindSafe for ChineseClipConfig
impl Send for ChineseClipConfig
impl Sync for ChineseClipConfig
impl Unpin for ChineseClipConfig
impl UnwindSafe for ChineseClipConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more