[][src]Struct onednn_sys::dnnl_blocking_desc_t

#[repr(C)]pub struct dnnl_blocking_desc_t {
    pub strides: dnnl_dims_t,
    pub inner_nblks: c_int,
    pub inner_blks: dnnl_dims_t,
    pub inner_idxs: dnnl_dims_t,
}

Generic description of blocked data layout for most memory formats.

@sa @ref dev_guide_understanding_memory_formats

Fields

strides: dnnl_dims_t

The strides between the outermost blocks. In case of plain (non-blocked) formats the strides between dimensions.

inner_nblks: c_int

The number of innermost blocks, e.g. 3 in case of OIhw_4i16o4i_

inner_blks: dnnl_dims_t

The size of the blocks, e.g. {4, 16, 4} in case of OIhw_4i16o4i

inner_idxs: dnnl_dims_t

The logical indices of the blocks, e.g. {1, 0, 1} in case of 4i16o4i, because i is the 1st dim and o is the 0st dim

Trait Implementations

impl Clone for dnnl_blocking_desc_t[src]

impl Copy for dnnl_blocking_desc_t[src]

impl Debug for dnnl_blocking_desc_t[src]

Auto Trait Implementations

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.