.. index:: pair: struct; dnnl_pooling_v2_desc_t .. _doxid-structdnnl__pooling__v2__desc__t: struct dnnl_pooling_v2_desc_t ============================= .. toctree:: :hidden: Overview ~~~~~~~~ A descriptor of a pooling operation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct dnnl_pooling_v2_desc_t { // fields :ref:`dnnl_primitive_kind_t` :ref:`primitive_kind`; :ref:`dnnl_prop_kind_t` :ref:`prop_kind`; :ref:`dnnl_alg_kind_t` :ref:`alg_kind`; :ref:`dnnl_memory_desc_t` :ref:`src_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_src_desc`; :ref:`dnnl_memory_desc_t` :ref:`dst_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_dst_desc`; :ref:`dnnl_dims_t` :ref:`strides`; :ref:`dnnl_dims_t` :ref:`kernel`; :ref:`dnnl_dims_t` :ref:`padding`[2]; :ref:`dnnl_data_type_t` :ref:`accum_data_type`; :ref:`dnnl_dims_t` :ref:`dilation`; }; .. _details-structdnnl__pooling__v2__desc__t: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A descriptor of a pooling operation. Fields ------ .. index:: pair: variable; primitive_kind .. _doxid-structdnnl__pooling__v2__desc__t_1aa588ccd5e6923c67bc8628652454cb87: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_primitive_kind_t` primitive_kind The kind of primitive. Used for self-identifying the primitive descriptor. Must be :ref:`dnnl_pooling_v2 `. .. index:: pair: variable; prop_kind .. _doxid-structdnnl__pooling__v2__desc__t_1a4822b19243e3c917a98504bebbcfdf5b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_prop_kind_t` prop_kind The kind of propagation. Possible values: :ref:`dnnl_forward_training `, :ref:`dnnl_forward_inference `, :ref:`dnnl_backward `, and :ref:`dnnl_backward_data `. .. index:: pair: variable; alg_kind .. _doxid-structdnnl__pooling__v2__desc__t_1aaae75a2798a03254de0226da64ee9b98: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_alg_kind_t` alg_kind The kind of pooling algorithm. Possible values: :ref:`dnnl_pooling_max `, :ref:`dnnl_pooling_avg_include_padding `, and :ref:`dnnl_pooling_avg_exclude_padding `. .. index:: pair: variable; src_desc .. _doxid-structdnnl__pooling__v2__desc__t_1a28c9c90697df14b57c8c73d141e6fcf2: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` src_desc Source memory descriptor. .. index:: pair: variable; diff_src_desc .. _doxid-structdnnl__pooling__v2__desc__t_1ab1eb745888b2d7e29ea284d6a1458fa5: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_src_desc Source gradient memory descriptor. .. index:: pair: variable; dst_desc .. _doxid-structdnnl__pooling__v2__desc__t_1ae4b3b22efb2bcc44ecf0022a31205df9: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` dst_desc Destination memory descriptor. .. index:: pair: variable; diff_dst_desc .. _doxid-structdnnl__pooling__v2__desc__t_1a90a655a14c3614ef72cbe4425a403ce5: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_dst_desc Destination gradient memory descriptor. .. index:: pair: variable; strides .. _doxid-structdnnl__pooling__v2__desc__t_1a4d33f71638bdf76e259f1291ab57e316: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` strides Pooling kernel strides for spatial dimensions. .. index:: pair: variable; kernel .. _doxid-structdnnl__pooling__v2__desc__t_1a9fadcb50dba6152611ef294be12abd1b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` kernel Pooling kernel spatial dimensions. .. index:: pair: variable; padding .. _doxid-structdnnl__pooling__v2__desc__t_1abd47bcc772e5cb51b2559d7d2580a872: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` padding[2] Padding in each spatial dimension. padding[0] is a padding in the beginning (``padding_l``), padding[1] is a padding in the end (``padding_r``). .. index:: pair: variable; accum_data_type .. _doxid-structdnnl__pooling__v2__desc__t_1a92b6615be76524cf800856ee63a5672f: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_data_type_t` accum_data_type The accumulator data type. Initialized automatically. .. index:: pair: variable; dilation .. _doxid-structdnnl__pooling__v2__desc__t_1a3bf00b2a4349b302d1b51af25424a884: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dims_t` dilation Pooling dilations for spatial dimensions.