[][src]Enum ocl_convolution::Layout

#[repr(u8)]
pub enum Layout {
    ChannelsFirst,
    ChannelsLast,
}

Memory layout of 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

impl Clone for Layout[src]

impl Copy for Layout[src]

impl Debug for Layout[src]

impl Eq for Layout[src]

impl Hash for Layout[src]

impl PartialEq<Layout> for Layout[src]

impl StructuralEq for Layout[src]

impl StructuralPartialEq for Layout[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.