Deep Neural Network Library (DNNL)  1.3.0
Performance library for Deep Learning
Public Member Functions | List of all members
dnnl::convolution_backward_weights::desc Struct Reference

Descriptor for a convolution weights gradient primitive. More...

#include <dnnl.hpp>

Collaboration diagram for dnnl::convolution_backward_weights::desc:
Collaboration graph
[legend]

Public Member Functions

 desc (algorithm algorithm, const memory::desc &src_desc, const memory::desc &diff_weights_desc, const memory::desc &diff_bias_desc, const memory::desc &diff_dst_desc, const memory::dims &strides, const memory::dims &padding_l, const memory::dims &padding_r)
 Constructs a descriptor for a convolution weights gradient primitive with bias. More...
 
 desc (algorithm algorithm, const memory::desc &src_desc, const memory::desc &diff_weights_desc, const memory::desc &diff_dst_desc, const memory::dims &strides, const memory::dims &padding_l, const memory::dims &padding_r)
 Constructs a descriptor for a convolution weights gradient primitive without bias. More...
 
 desc (algorithm algorithm, const memory::desc &src_desc, const memory::desc &diff_weights_desc, const memory::desc &diff_bias_desc, const memory::desc &diff_dst_desc, const memory::dims &strides, const memory::dims &dilates, const memory::dims &padding_l, const memory::dims &padding_r)
 Constructs a descriptor for a dilated convolution weights gradient primitive with bias. More...
 
 desc (algorithm algorithm, const memory::desc &src_desc, const memory::desc &diff_weights_desc, const memory::desc &diff_dst_desc, const memory::dims &strides, const memory::dims &dilates, const memory::dims &padding_l, const memory::dims &padding_r)
 Constructs a descriptor for a dilated convolution weights gradient primitive without bias. More...
 

Detailed Description

Descriptor for a convolution weights gradient primitive.

Examples:
cnn_training_f32.cpp, and cpu_cnn_training_bf16.cpp.

Constructor & Destructor Documentation

◆ desc() [1/4]

dnnl::convolution_backward_weights::desc::desc ( algorithm  algorithm,
const memory::desc src_desc,
const memory::desc diff_weights_desc,
const memory::desc diff_bias_desc,
const memory::desc diff_dst_desc,
const memory::dims strides,
const memory::dims padding_l,
const memory::dims padding_r 
)
inline

Constructs a descriptor for a convolution weights gradient primitive with bias.

Note
Memory descriptors can be initialized with dnnl::memory::format_tag::any value of format_tag.

Inputs:

Outputs:

Parameters
algorithmConvolution algorithm. Possible values are dnnl::algorithm::convolution_direct, dnnl::algorithm::convolution_winograd, and dnnl::algorithm::convolution_auto.
src_descSource memory descriptor.
diff_weights_descDiff weights memory descriptor.
diff_bias_descDiff bias memory descriptor. Passing zero memory descriptor disables the bias term.
diff_dst_descDiff destination memory descriptor.
stridesStrides for each spatial dimension.
padding_lVector of padding values for low indices for each spatial dimension (front, top, left).
padding_rVector of padding values for high indices for each spatial dimension (back, bottom, right).

◆ desc() [2/4]

dnnl::convolution_backward_weights::desc::desc ( algorithm  algorithm,
const memory::desc src_desc,
const memory::desc diff_weights_desc,
const memory::desc diff_dst_desc,
const memory::dims strides,
const memory::dims padding_l,
const memory::dims padding_r 
)
inline

Constructs a descriptor for a convolution weights gradient primitive without bias.

Note
Memory descriptors can be initialized with dnnl::memory::format_tag::any value of format_tag.

Inputs:

Outputs:

Parameters
algorithmConvolution algorithm. Possible values are dnnl::algorithm::convolution_direct, dnnl::algorithm::convolution_winograd, and dnnl::algorithm::convolution_auto.
src_descSource memory descriptor.
diff_weights_descDiff weights memory descriptor.
diff_dst_descDiff destination memory descriptor.
stridesStrides for each spatial dimension.
padding_lVector of padding values for low indices for each spatial dimension (front, top, left).
padding_rVector of padding values for high indices for each spatial dimension (back, bottom, right).

◆ desc() [3/4]

dnnl::convolution_backward_weights::desc::desc ( algorithm  algorithm,
const memory::desc src_desc,
const memory::desc diff_weights_desc,
const memory::desc diff_bias_desc,
const memory::desc diff_dst_desc,
const memory::dims strides,
const memory::dims dilates,
const memory::dims padding_l,
const memory::dims padding_r 
)
inline

Constructs a descriptor for a dilated convolution weights gradient primitive with bias.

Note
Memory descriptors can be initialized with dnnl::memory::format_tag::any value of format_tag.

Inputs:

Outputs:

Parameters
algorithmConvolution algorithm. Possible values are dnnl::algorithm::convolution_direct, dnnl::algorithm::convolution_winograd, and dnnl::algorithm::convolution_auto.
src_descSource memory descriptor.
diff_weights_descDiff weights memory descriptor.
diff_bias_descDiff bias memory descriptor. Passing zero memory descriptor disables the bias term.
diff_dst_descDiff destination memory descriptor.
stridesStrides for each spatial dimension.
dilatesDilations for each spatial dimension. A zero value means no dilation in the corresponding dimension.
padding_lVector of padding values for low indices for each spatial dimension (front, top, left).
padding_rVector of padding values for high indices for each spatial dimension (back, bottom, right).

◆ desc() [4/4]

dnnl::convolution_backward_weights::desc::desc ( algorithm  algorithm,
const memory::desc src_desc,
const memory::desc diff_weights_desc,
const memory::desc diff_dst_desc,
const memory::dims strides,
const memory::dims dilates,
const memory::dims padding_l,
const memory::dims padding_r 
)
inline

Constructs a descriptor for a dilated convolution weights gradient primitive without bias.

Note
Memory descriptors can be initialized with dnnl::memory::format_tag::any value of format_tag.

Inputs:

Outputs:

Parameters
algorithmConvolution algorithm. Possible values are dnnl::algorithm::convolution_direct, dnnl::algorithm::convolution_winograd, and dnnl::algorithm::convolution_auto.
src_descSource memory descriptor.
diff_weights_descDiff weights memory descriptor.
diff_dst_descDiff destination memory descriptor.
stridesStrides for each spatial dimension.
dilatesDilations for each spatial dimension. A zero value means no dilation in the corresponding dimension.
padding_lVector of padding values for low indices for each spatial dimension (front, top, left).
padding_rVector of padding values for high indices for each spatial dimension (back, bottom, right).

The documentation for this struct was generated from the following file: