.. index:: pair: struct; dnnl::reduction::desc .. _doxid-structdnnl_1_1reduction_1_1desc: struct dnnl::reduction::desc ============================ .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for reduction. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_reduction_desc_t` :target:`data`; // construction :ref:`desc`(); :ref:`desc`( :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& dst_desc, float p, float eps ); }; .. _details-structdnnl_1_1reduction_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for reduction. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1reduction_1_1desc_1a9ffaf6df9bdc6bd928570abe311c64ab: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc() Default constructor. Produces an empty object. .. index:: pair: function; desc .. _doxid-structdnnl_1_1reduction_1_1desc_1ab7b9e28e493eccb2b53a3982abfcab6d: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& dst_desc, float p, float eps ) Constructs a descriptor for a reduction primitive using algorithm specific parameters, source and destination memory descriptors. .. note:: Destination memory descriptor may be initialized with :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aalgorithm - reduction algorithm kind. Possible values: :ref:`dnnl_reduction_max `, :ref:`dnnl_reduction_min `, :ref:`dnnl_reduction_sum `, :ref:`dnnl_reduction_mul `, :ref:`dnnl_reduction_mean `, :ref:`dnnl_reduction_norm_lp_max `, :ref:`dnnl_reduction_norm_lp_sum `, :ref:`dnnl_reduction_norm_lp_power_p_max `, :ref:`dnnl_reduction_norm_lp_power_p_sum `. * - p - algorithm specific parameter. * - eps - algorithm specific parameter. * - src_desc - Source memory descriptor. * - dst_desc - Destination memory descriptor.