#[repr(u8)]pub enum Layout {
ChannelsFirst = 0,
ChannelsLast = 1,
}
Expand description
Memory layout of a FeatureMap
.
Variants§
ChannelsFirst = 0
NCHW
/ “channels-first” layout. In this layout, channels are an outer dimension compared
to spatial width and height.
ChannelsLast = 1
NHWC
/ “channels-last” layout. In this layout, channels are the innermost dimension.
This layout is preferred because it is used internally by the OpenCL code in order to efficiently vectorize multiply-add operations.
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnwindSafe for Layout
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