pub enum MemoryFormat {
Contiguous,
ChannelsLast,
Blocked(usize),
Custom,
}Expand description
Memory-format hint used to pick vectorized kernels.
Variants§
Contiguous
Standard row-major.
ChannelsLast
NHWC channels-last.
Blocked(usize)
Blocked/tiled format with the given block width (e.g. 16 for VNNI/AMX).
Custom
An arbitrary strided layout that matches none of the named formats.
Trait Implementations§
Source§impl Clone for MemoryFormat
impl Clone for MemoryFormat
Source§fn clone(&self) -> MemoryFormat
fn clone(&self) -> MemoryFormat
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 MemoryFormat
impl Debug for MemoryFormat
Source§impl Default for MemoryFormat
impl Default for MemoryFormat
Source§fn default() -> MemoryFormat
fn default() -> MemoryFormat
Returns the “default value” for a type. Read more
impl Eq for MemoryFormat
Source§impl PartialEq for MemoryFormat
impl PartialEq for MemoryFormat
impl StructuralPartialEq for MemoryFormat
Auto Trait Implementations§
impl Freeze for MemoryFormat
impl RefUnwindSafe for MemoryFormat
impl Send for MemoryFormat
impl Sync for MemoryFormat
impl Unpin for MemoryFormat
impl UnsafeUnpin for MemoryFormat
impl UnwindSafe for MemoryFormat
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