.. index:: pair: struct; dnnl::softmax_backward::primitive_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc: struct dnnl::softmax_backward::primitive_desc ============================================= .. toctree:: :hidden: Overview ~~~~~~~~ Primitive descriptor for a softmax backward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct primitive_desc: public :ref:`dnnl::primitive_desc` { // construction :ref:`primitive_desc`(); :ref:`primitive_desc`( const :ref:`desc`& adesc, const :ref:`engine`& aengine, const :ref:`softmax_forward::primitive_desc`& hint_fwd_pd, bool allow_empty = false ); :ref:`primitive_desc`( const :ref:`desc`& adesc, const primitive_attr& attr, const :ref:`engine`& aengine, const :ref:`softmax_forward::primitive_desc`& hint_fwd_pd, bool allow_empty = false ); :ref:`primitive_desc`(:ref:`dnnl_primitive_desc_t` pd); // methods :ref:`memory::desc` :ref:`dst_desc`() const; :ref:`memory::desc` :ref:`diff_src_desc`() const; :ref:`memory::desc` :ref:`diff_dst_desc`() const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods :ref:`handle`& :ref:`operator =` (const :ref:`handle`&); :ref:`handle`& :ref:`operator =` (:ref:`handle`&&); void :ref:`reset`(T t, bool weak = false); T :ref:`get`(bool allow_empty = false) const; :ref:`operator T` () const; :ref:`operator bool` () const; bool :ref:`operator ==` (const :ref:`handle`& other) const; bool :ref:`operator !=` (const :ref:`handle`& other) const; :ref:`engine` :ref:`get_engine`() const; const char* :ref:`impl_info_str`() const; :ref:`memory::dim` :ref:`query_s64`(:ref:`query` what) const; :ref:`memory::desc` :ref:`query_md`(:ref:`query` what, int idx = 0) const; :ref:`memory::desc` :ref:`src_desc`(int idx) const; :ref:`memory::desc` :ref:`dst_desc`(int idx) const; :ref:`memory::desc` :ref:`weights_desc`(int idx) const; :ref:`memory::desc` :ref:`diff_src_desc`(int idx) const; :ref:`memory::desc` :ref:`diff_dst_desc`(int idx) const; :ref:`memory::desc` :ref:`diff_weights_desc`(int idx) const; :ref:`memory::desc` :ref:`src_desc`() const; :ref:`memory::desc` :ref:`dst_desc`() const; :ref:`memory::desc` :ref:`weights_desc`() const; :ref:`memory::desc` :ref:`diff_src_desc`() const; :ref:`memory::desc` :ref:`diff_dst_desc`() const; :ref:`memory::desc` :ref:`diff_weights_desc`() const; :ref:`memory::desc` :ref:`workspace_desc`() const; :ref:`memory::desc` :ref:`scratchpad_desc`() const; :ref:`engine` :ref:`scratchpad_engine`() const; primitive_attr :ref:`get_primitive_attr`() const; :ref:`dnnl::primitive::kind` :ref:`get_kind`() const; bool :ref:`next_impl`(); :ref:`primitive_desc_base`(); :ref:`primitive_desc_base`(); :ref:`primitive_desc_base`(); :ref:`primitive_desc_base`(); .. _details-structdnnl_1_1softmax__backward_1_1primitive__desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Primitive descriptor for a softmax backward propagation primitive. Construction ------------ .. index:: pair: function; primitive_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1a397eb6014080012b7bb1d6a17a9001d7: .. ref-code-block:: cpp :class: doxyrest-title-code-block primitive_desc() Default constructor. Produces an empty object. .. index:: pair: function; primitive_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1a8e1f6800bf7131db459c555a418a299b: .. ref-code-block:: cpp :class: doxyrest-title-code-block primitive_desc( const :ref:`desc`& adesc, const :ref:`engine`& aengine, const :ref:`softmax_forward::primitive_desc`& hint_fwd_pd, bool allow_empty = false ) Constructs a primitive descriptor for a softmax backward propagation primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - adesc - Descriptor for a softmax backward propagation primitive. * - aengine - Engine to use. * - hint_fwd_pd - Primitive descriptor for a softmax forward propagation primitive. It is used as a hint for deciding which memory format to use. * - allow_empty - A flag signifying whether construction is allowed to fail without throwing an exception. In this case an empty object will be produced. This flag is optional and defaults to false. .. index:: pair: function; primitive_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1a272dac1f7fa2750d73a4e489401019ba: .. ref-code-block:: cpp :class: doxyrest-title-code-block primitive_desc( const :ref:`desc`& adesc, const primitive_attr& attr, const :ref:`engine`& aengine, const :ref:`softmax_forward::primitive_desc`& hint_fwd_pd, bool allow_empty = false ) Constructs a primitive descriptor for a softmax backward propagation primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - adesc - Descriptor for a softmax backward propagation primitive. * - attr - Primitive attributes to use. * - aengine - Engine to use. * - hint_fwd_pd - Primitive descriptor for a softmax forward propagation primitive. It is used as a hint for deciding which memory format to use. * - allow_empty - A flag signifying whether construction is allowed to fail without throwing an exception. In this case an empty object will be produced. This flag is optional and defaults to false. .. index:: pair: function; primitive_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1a196d602f333a73661f6d83dec6305169: .. ref-code-block:: cpp :class: doxyrest-title-code-block primitive_desc(:ref:`dnnl_primitive_desc_t` pd) Constructs a primitive descriptor for a softmax backward propagation primitive from a C API primitive descriptor that must have a matching kind. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - pd - C API primitive descriptor for a softmax backward propagation primitive. Methods ------- .. index:: pair: function; dst_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1ad3b920f55e4320d8bd526c6161b71033: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`memory::desc` dst_desc() const Returns a destination memory descriptor. .. rubric:: Returns: Destination memory descriptor. A zero memory descriptor if the primitive does not have a destination parameter. .. index:: pair: function; diff_src_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1a30e8e79fd5b9c632e2b6dee01652d617: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`memory::desc` diff_src_desc() const Returns a diff source memory descriptor. .. rubric:: Returns: Diff source memory descriptor. A zero memory descriptor if the primitive does not have a diff source memory with. .. index:: pair: function; diff_dst_desc .. _doxid-structdnnl_1_1softmax__backward_1_1primitive__desc_1a2d258a7048205995bf3c80a25832122d: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`memory::desc` diff_dst_desc() const Returns a destination memory descriptor. .. rubric:: Returns: Destination memory descriptor. A zero memory descriptor if the primitive does not have a destination parameter.