pub enum TensorMemoryFormat {
Contiguous,
ChannelsLast,
ChannelsFirst,
Sparse,
Unknown,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TensorMemoryFormat
impl Clone for TensorMemoryFormat
Source§fn clone(&self) -> TensorMemoryFormat
fn clone(&self) -> TensorMemoryFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TensorMemoryFormat
impl Debug for TensorMemoryFormat
Source§impl Display for TensorMemoryFormat
impl Display for TensorMemoryFormat
Source§impl FromStr for TensorMemoryFormat
impl FromStr for TensorMemoryFormat
Source§impl Hash for TensorMemoryFormat
impl Hash for TensorMemoryFormat
Source§impl Ord for TensorMemoryFormat
impl Ord for TensorMemoryFormat
Source§fn cmp(&self, other: &TensorMemoryFormat) -> Ordering
fn cmp(&self, other: &TensorMemoryFormat) -> Ordering
1.21.0 (const: unstable) · 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 TensorMemoryFormat
impl PartialEq for TensorMemoryFormat
Source§fn eq(&self, other: &TensorMemoryFormat) -> bool
fn eq(&self, other: &TensorMemoryFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§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