pub enum TensorFormat {
Nchw,
Nhwc,
}Expand description
Memory layout for a 4-D tensor.
Variants§
Nchw
Batch × Channels × Height × Width (channels-first, the cuDNN default).
Nhwc
Batch × Height × Width × Channels (channels-last).
Trait Implementations§
Source§impl Clone for TensorFormat
impl Clone for TensorFormat
Source§fn clone(&self) -> TensorFormat
fn clone(&self) -> TensorFormat
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 moreimpl Copy for TensorFormat
Source§impl Debug for TensorFormat
impl Debug for TensorFormat
Source§impl Default for TensorFormat
impl Default for TensorFormat
Source§fn default() -> TensorFormat
fn default() -> TensorFormat
Returns the “default value” for a type. Read more
impl Eq for TensorFormat
Source§impl PartialEq for TensorFormat
impl PartialEq for TensorFormat
Source§fn eq(&self, other: &TensorFormat) -> bool
fn eq(&self, other: &TensorFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TensorFormat
Auto Trait Implementations§
impl Freeze for TensorFormat
impl RefUnwindSafe for TensorFormat
impl Send for TensorFormat
impl Sync for TensorFormat
impl Unpin for TensorFormat
impl UnsafeUnpin for TensorFormat
impl UnwindSafe for TensorFormat
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