Enum ocl_convolution::Layout
source · #[repr(u8)]pub enum Layout {
ChannelsFirst,
ChannelsLast,
}
Expand description
Memory layout of a FeatureMap
.
Variants§
ChannelsFirst
NCHW
/ “channels-first” layout. In this layout, channels are an outer dimension compared
to spatial width and height.
ChannelsLast
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§
source§impl PartialEq<Layout> for Layout
impl PartialEq<Layout> for Layout
impl Copy for Layout
impl Eq for Layout
impl StructuralEq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
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