Descriptor for a pooling forward propagation primitive. More...
#include <dnnl.hpp>
Public Member Functions | |
desc (prop_kind prop_kind, algorithm algorithm, const memory::desc &src_desc, const memory::desc &dst_desc, const memory::dims &strides, const memory::dims &kernel, const memory::dims &padding_l, const memory::dims &padding_r) | |
Constructs a descriptor for pooling forward propagation primitive. More... | |
Descriptor for a pooling forward propagation primitive.
|
inline |
Constructs a descriptor for pooling forward propagation primitive.
Inputs:
Outputs:
alg_kind
= dnnl::algorithm::pooling_max and prop_kind
= dnnl::prop_kind::forward_training; must be queried for using dnnl::primitive_desc_base::query_md() after a corresponding primitive descriptor is createdprop_kind | Propagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference. |
algorithm | Pooling algorithm kind: either dnnl::algorithm::pooling_max, dnnl::algorithm::pooling_avg_include_padding, or dnnl::algorithm::pooling_avg (same as dnnl::algorithm::pooling_avg_exclude_padding). |
src_desc | Source memory descriptor. |
dst_desc | Destination memory descriptor. |
strides | Vector of strides for spatial dimension. |
kernel | Vector of kernel spatial dimensions. |
padding_l | Vector of padding values for low indices for each spatial dimension (front, top, left). |
padding_r | Vector of padding values for high indices for each spatial dimension (back, bottom, right). |