.. index:: pair: struct; dnnl::pooling_backward::desc .. _doxid-structdnnl_1_1pooling__backward_1_1desc: struct dnnl::pooling_backward::desc =================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for a pooling backward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_pooling_desc_t` :target:`data`; // construction :ref:`desc`( :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& diff_src_desc, const :ref:`memory::desc`& diff_dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& kernel, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ); }; .. _details-structdnnl_1_1pooling__backward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for a pooling backward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1pooling__backward_1_1desc_1aa7bea39c45614f099b67a68b1825d080: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& diff_src_desc, const :ref:`memory::desc`& diff_dst_desc, const :ref:`memory::dims`& strides, const :ref:`memory::dims`& kernel, const :ref:`memory::dims`& padding_l, const :ref:`memory::dims`& padding_r ) Constructs a descriptor for pooling backward propagation primitive. Arrays ``strides``, ``kernel``, ``padding_l``, and ``padding_r`` contain values for spatial dimensions only and hence must have the same number of elements as there are spatial dimensions. The order of values is the same as in the tensor: depth (for 3D tensors), height (for 3D and 2D tensors), and width. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aalgorithm - Pooling algorithm kind: either :ref:`dnnl::algorithm::pooling_max `, :ref:`dnnl::algorithm::pooling_avg_include_padding `, or :ref:`dnnl::algorithm::pooling_avg ` (same as :ref:`dnnl::algorithm::pooling_avg_exclude_padding `). * - diff_src_desc - Diff source memory descriptor. * - diff_dst_desc - Diff 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)``.