[][src]Struct onednn_sys::dnnl_convolution_desc_t

#[repr(C)]pub struct dnnl_convolution_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 weights_desc: dnnl_memory_desc_t,
    pub diff_weights_desc: dnnl_memory_desc_t,
    pub bias_desc: dnnl_memory_desc_t,
    pub diff_bias_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 dilates: dnnl_dims_t,
    pub padding: [dnnl_dims_t; 2],
    pub accum_data_type: dnnl_data_type_t,
}

A descriptor of a convolution operation.

Fields

primitive_kind: dnnl_primitive_kind_t

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

prop_kind: dnnl_prop_kind_t

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

alg_kind: dnnl_alg_kind_t

The kind of the convolution algorithm. Possible values: #dnnl_convolution_direct.

src_desc: dnnl_memory_desc_t

Source memory descriptor.

diff_src_desc: dnnl_memory_desc_t

Source gradient memory descriptor.

weights_desc: dnnl_memory_desc_t

Weights memory descriptor.

diff_weights_desc: dnnl_memory_desc_t

Weights gradient memory descriptor.

bias_desc: dnnl_memory_desc_t

Bias memory descriptor.

diff_bias_desc: dnnl_memory_desc_t

Bias 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

Convolution strides in each spatial dimension.

dilates: dnnl_dims_t

Convolution dilates in each spatial dimension.

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_convolution_desc_t[src]

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