#[repr(transparent)]pub struct MLCLSTMResultMode(pub u64);
Available on crate feature
MLCTypes
only.Expand description
A result mode for an LSTM layer.
See also Apple’s documentation
Tuple Fields§
§0: u64
Implementations§
Source§impl MLCLSTMResultMode
impl MLCLSTMResultMode
Sourcepub const Output: Self
pub const Output: Self
The output result mode. When selected for an LSTM layer, the layer will produce a single result tensor representing the final output of the LSTM.
Sourcepub const OutputAndStates: Self
pub const OutputAndStates: Self
The output and states result mode. When selected for an LSTM layer, the layer will produce three result tensors representing the final output of the LSTM, the last hidden state, and the cell state, respectively.
Source§impl MLCLSTMResultMode
impl MLCLSTMResultMode
Sourcepub unsafe fn debug_description(self: MLCLSTMResultMode) -> Retained<NSString>
pub unsafe fn debug_description(self: MLCLSTMResultMode) -> Retained<NSString>
Returns a textual description of the LSTM result mode, suitable for debugging.
Trait Implementations§
Source§impl Clone for MLCLSTMResultMode
impl Clone for MLCLSTMResultMode
Source§fn clone(&self) -> MLCLSTMResultMode
fn clone(&self) -> MLCLSTMResultMode
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 MLCLSTMResultMode
impl Debug for MLCLSTMResultMode
Source§impl Encode for MLCLSTMResultMode
impl Encode for MLCLSTMResultMode
Source§impl Hash for MLCLSTMResultMode
impl Hash for MLCLSTMResultMode
Source§impl Ord for MLCLSTMResultMode
impl Ord for MLCLSTMResultMode
Source§fn cmp(&self, other: &MLCLSTMResultMode) -> Ordering
fn cmp(&self, other: &MLCLSTMResultMode) -> 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 MLCLSTMResultMode
impl PartialEq for MLCLSTMResultMode
Source§impl PartialOrd for MLCLSTMResultMode
impl PartialOrd for MLCLSTMResultMode
Source§impl RefEncode for MLCLSTMResultMode
impl RefEncode for MLCLSTMResultMode
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 MLCLSTMResultMode
impl Eq for MLCLSTMResultMode
impl StructuralPartialEq for MLCLSTMResultMode
Auto Trait Implementations§
impl Freeze for MLCLSTMResultMode
impl RefUnwindSafe for MLCLSTMResultMode
impl Send for MLCLSTMResultMode
impl Sync for MLCLSTMResultMode
impl Unpin for MLCLSTMResultMode
impl UnwindSafe for MLCLSTMResultMode
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.