[][src]Struct onednn_sys::dnnl_pooling_desc_t

#[repr(C)]pub struct dnnl_pooling_desc_t {
    pub primitive_kind: dnnl_primitive_kind_t,
    pub prop_kind: dnnl_prop_kind_t,
    pub alg_kind: dnnl_alg_kind_t,
    pub src_desc: dnnl_memory_desc_t,
    pub diff_src_desc: dnnl_memory_desc_t,
    pub dst_desc: dnnl_memory_desc_t,
    pub diff_dst_desc: dnnl_memory_desc_t,
    pub strides: dnnl_dims_t,
    pub kernel: dnnl_dims_t,
    pub padding: [dnnl_dims_t; 2],
    pub accum_data_type: dnnl_data_type_t,
}

A descriptor of a pooling operation.

Fields

primitive_kind: dnnl_primitive_kind_t

The kind of primitive. Used for self-identifying the primitive descriptor. Must be #dnnl_pooling.

prop_kind: dnnl_prop_kind_t

The kind of propagation. Possible values: #dnnl_forward_training, #dnnl_forward_inference, #dnnl_backward, and #dnnl_backward_data.

alg_kind: dnnl_alg_kind_t

The kind of pooling algorithm. Possible values: #dnnl_pooling_max, #dnnl_pooling_avg_include_padding, and #dnnl_pooling_avg_exclude_padding.

src_desc: dnnl_memory_desc_t

Source memory descriptor.

diff_src_desc: dnnl_memory_desc_t

Source gradient memory descriptor.

dst_desc: dnnl_memory_desc_t

Destination memory descriptor.

diff_dst_desc: dnnl_memory_desc_t

Destination gradient memory descriptor.

strides: dnnl_dims_t

Pooling kernel strides for spatial dimensions.

kernel: dnnl_dims_t

Pooling kernel spatial dimensions.

padding: [dnnl_dims_t; 2]

Padding in each spatial dimension. padding[0] is a padding in the beginning (@p padding_l), padding[1] is a padding in the end (@p padding_r).

accum_data_type: dnnl_data_type_t

The accumulator data type. Initialized automatically.

Trait Implementations

impl Clone for dnnl_pooling_desc_t[src]

impl Copy for dnnl_pooling_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.