Enum TensorMemoryFormat
pub enum TensorMemoryFormat {
Contiguous,
ChannelsLast,
ChannelsFirst,
Sparse,
Unknown,
}Variants§
Implementations§
§impl TensorMemoryFormat
impl TensorMemoryFormat
Trait Implementations§
§impl Clone for TensorMemoryFormat
impl Clone for TensorMemoryFormat
§fn clone(&self) -> TensorMemoryFormat
fn clone(&self) -> TensorMemoryFormat
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 more§impl Debug for TensorMemoryFormat
impl Debug for TensorMemoryFormat
§impl Display for TensorMemoryFormat
impl Display for TensorMemoryFormat
§impl FromStr for TensorMemoryFormat
impl FromStr for TensorMemoryFormat
§type Err = TensorShapeError
type Err = TensorShapeError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<TensorMemoryFormat, <TensorMemoryFormat as FromStr>::Err>
fn from_str( value: &str, ) -> Result<TensorMemoryFormat, <TensorMemoryFormat as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for TensorMemoryFormat
impl Hash for TensorMemoryFormat
§impl Ord for TensorMemoryFormat
impl Ord for TensorMemoryFormat
§fn cmp(&self, other: &TensorMemoryFormat) -> Ordering
fn cmp(&self, other: &TensorMemoryFormat) -> 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
§impl PartialEq for TensorMemoryFormat
impl PartialEq for TensorMemoryFormat
§impl PartialOrd for TensorMemoryFormat
impl PartialOrd for TensorMemoryFormat
impl Copy for TensorMemoryFormat
impl Eq for TensorMemoryFormat
impl StructuralPartialEq for TensorMemoryFormat
Auto Trait Implementations§
impl Freeze for TensorMemoryFormat
impl RefUnwindSafe for TensorMemoryFormat
impl Send for TensorMemoryFormat
impl Sync for TensorMemoryFormat
impl Unpin for TensorMemoryFormat
impl UnsafeUnpin for TensorMemoryFormat
impl UnwindSafe for TensorMemoryFormat
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