.. index:: pair: struct; dnnl::softmax_forward::desc .. _doxid-structdnnl_1_1softmax__forward_1_1desc: struct dnnl::softmax_forward::desc ================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for a softmax forward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_softmax_desc_t` :target:`data`; // construction :ref:`desc`(); :ref:`desc`(:ref:`prop_kind` aprop_kind, const :ref:`memory::desc`& data_desc, int softmax_axis); }; .. _details-structdnnl_1_1softmax__forward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for a softmax forward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1softmax__forward_1_1desc_1ab9f8727afb4ea7555ae1cd718a091d9d: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc() Default constructor. Produces an empty object. .. index:: pair: function; desc .. _doxid-structdnnl_1_1softmax__forward_1_1desc_1ab573772b6fbaab68a2310f8238c4cce5: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc(:ref:`prop_kind` aprop_kind, const :ref:`memory::desc`& data_desc, int softmax_axis) Constructs a descriptor for a softmax forward propagation primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - aprop_kind - Propagation kind. Possible values are :ref:`dnnl::prop_kind::forward_training `, and :ref:`dnnl::prop_kind::forward_inference `. * - data_desc - Source and destination memory descriptor. * - softmax_axis - Axis over which softmax is computed.