.. index:: pair: struct; dnnl::softmax_v2_backward::desc .. _doxid-structdnnl_1_1softmax__v2__backward_1_1desc: struct dnnl::softmax_v2_backward::desc ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for a softmax backward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_softmax_v2_desc_t` :target:`data`; // construction :ref:`desc`(); :ref:`desc`( :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& diff_src_desc, const :ref:`memory::desc`& diff_dst_desc, const :ref:`memory::desc`& dst_desc, int softmax_axis ); }; .. _details-structdnnl_1_1softmax__v2__backward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for a softmax backward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1softmax__v2__backward_1_1desc_1a722f995c8386b5fa3e871340dc0259d9: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc() Default constructor. Produces an empty object. .. index:: pair: function; desc .. _doxid-structdnnl_1_1softmax__v2__backward_1_1desc_1aa1bd049217956835b9d02a2504669cf0: .. 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::desc`& dst_desc, int softmax_axis ) Constructs a descriptor for a softmax backward propagation primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aalgorithm - Softmax algorithm kind: either :ref:`dnnl::algorithm::softmax_accurate `, or :ref:`dnnl::algorithm::softmax_log `. * - diff_src_desc - Diff source memory descriptor. * - diff_dst_desc - Diff destination memory descriptor. * - dst_desc - Destination memory descriptor. * - softmax_axis - Axis over which softmax is computed.