pub struct CrossModalContrastiveTrained {
pub projection1: ProjectionNetwork,
pub projection2: ProjectionNetwork,
pub classifier_weights: Array2<f64>,
pub classifier_biases: Array1<f64>,
pub classes: Array1<i32>,
pub projection_dim: usize,
pub n_classes: usize,
pub temperature: f64,
}Expand description
Trained state for Cross-Modal Contrastive Learning
Fields§
§projection1: ProjectionNetworkprojection1
projection2: ProjectionNetworkprojection2
classifier_weights: Array2<f64>classifier_weights
classifier_biases: Array1<f64>classifier_biases
classes: Array1<i32>classes
projection_dim: usizeprojection_dim
n_classes: usizen_classes
temperature: f64temperature
Trait Implementations§
Source§impl Clone for CrossModalContrastiveTrained
impl Clone for CrossModalContrastiveTrained
Source§fn clone(&self) -> CrossModalContrastiveTrained
fn clone(&self) -> CrossModalContrastiveTrained
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 CrossModalContrastiveTrained
impl RefUnwindSafe for CrossModalContrastiveTrained
impl Send for CrossModalContrastiveTrained
impl Sync for CrossModalContrastiveTrained
impl Unpin for CrossModalContrastiveTrained
impl UnwindSafe for CrossModalContrastiveTrained
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,
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