#[repr(transparent)]pub struct MLCLossType(pub i32);
Available on crate feature
MLCTypes
only.Expand description
A loss function.
See also Apple’s documentation
Tuple Fields§
§0: i32
Implementations§
Source§impl MLCLossType
impl MLCLossType
Sourcepub const MeanAbsoluteError: Self
pub const MeanAbsoluteError: Self
The mean absolute error loss.
Sourcepub const MeanSquaredError: Self
pub const MeanSquaredError: Self
The mean squared error loss.
Sourcepub const SoftmaxCrossEntropy: Self
pub const SoftmaxCrossEntropy: Self
The softmax cross entropy loss.
Sourcepub const SigmoidCrossEntropy: Self
pub const SigmoidCrossEntropy: Self
The sigmoid cross entropy loss.
Sourcepub const CategoricalCrossEntropy: Self
pub const CategoricalCrossEntropy: Self
The categorical cross entropy loss.
Sourcepub const CosineDistance: Self
pub const CosineDistance: Self
The cosine distance loss.
Source§impl MLCLossType
impl MLCLossType
Sourcepub unsafe fn debug_description(self: MLCLossType) -> Retained<NSString>
pub unsafe fn debug_description(self: MLCLossType) -> Retained<NSString>
Returns a textual description of the loss type, suitable for debugging.
Trait Implementations§
Source§impl Clone for MLCLossType
impl Clone for MLCLossType
Source§fn clone(&self) -> MLCLossType
fn clone(&self) -> MLCLossType
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 moreSource§impl Debug for MLCLossType
impl Debug for MLCLossType
Source§impl Encode for MLCLossType
impl Encode for MLCLossType
Source§impl Hash for MLCLossType
impl Hash for MLCLossType
Source§impl Ord for MLCLossType
impl Ord for MLCLossType
Source§fn cmp(&self, other: &MLCLossType) -> Ordering
fn cmp(&self, other: &MLCLossType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MLCLossType
impl PartialEq for MLCLossType
Source§impl PartialOrd for MLCLossType
impl PartialOrd for MLCLossType
Source§impl RefEncode for MLCLossType
impl RefEncode for MLCLossType
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for MLCLossType
impl Eq for MLCLossType
impl StructuralPartialEq for MLCLossType
Auto Trait Implementations§
impl Freeze for MLCLossType
impl RefUnwindSafe for MLCLossType
impl Send for MLCLossType
impl Sync for MLCLossType
impl Unpin for MLCLossType
impl UnwindSafe for MLCLossType
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.