pub enum DimensionType {
Caffe,
CaffeC4,
TensorFlow,
}
Expand description
The type of the tensor dimension
If you are manually specifying the shapes then this doesn’t really matter
N -> Batch size
C -> Channel
H -> Height
W -> Width
Variants§
Caffe
Caffe style dimensions or NCHW
CaffeC4
Caffe style dimensions with channel packed in 4 bytes or NC4HW4
TensorFlow
Tensorflow style dimensions or NHWC
Implementations§
Trait Implementations§
Source§impl Clone for DimensionType
impl Clone for DimensionType
Source§fn clone(&self) -> DimensionType
fn clone(&self) -> DimensionType
Returns a copy 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 DimensionType
impl Debug for DimensionType
Source§impl From<DimensionType> for DimensionType
impl From<DimensionType> for DimensionType
Source§fn from(dm: DimensionType) -> Self
fn from(dm: DimensionType) -> Self
Converts to this type from the input type.
Source§impl Hash for DimensionType
impl Hash for DimensionType
Source§impl PartialEq for DimensionType
impl PartialEq for DimensionType
impl Copy for DimensionType
impl Eq for DimensionType
impl StructuralPartialEq for DimensionType
Auto Trait Implementations§
impl Freeze for DimensionType
impl RefUnwindSafe for DimensionType
impl Send for DimensionType
impl Sync for DimensionType
impl Unpin for DimensionType
impl UnwindSafe for DimensionType
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