.. index:: pair: struct; dnnl::layer_normalization_forward .. _doxid-structdnnl_1_1layer__normalization__forward: struct dnnl::layer_normalization_forward ======================================== .. toctree:: :hidden: struct_dnnl_layer_normalization_forward_primitive_desc.rst Overview ~~~~~~~~ Layer normalization forward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct layer_normalization_forward: public :ref:`dnnl::primitive` { // structs struct :ref:`primitive_desc`; // construction :ref:`layer_normalization_forward`(); :ref:`layer_normalization_forward`(const :ref:`primitive_desc`& pd); :ref:`layer_normalization_forward`( const :ref:`primitive_desc`& pd, const std::vector& cache_blob ); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`kind`; // 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:`const_dnnl_primitive_desc_t` :ref:`get_primitive_desc`() const; :ref:`kind` :ref:`get_kind`() const; std::vector :ref:`get_cache_blob`() const; void :ref:`execute`(const :ref:`stream`& astream, const std::unordered_map`>& args) const; :ref:`handle`(); :ref:`handle`(); :ref:`handle`(); :ref:`handle`(); .. _details-structdnnl_1_1layer__normalization__forward: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Layer normalization forward propagation primitive. Construction ------------ .. index:: pair: function; layer_normalization_forward .. _doxid-structdnnl_1_1layer__normalization__forward_1aa1dd9d6d98a618284801a992a6367dd5: .. ref-code-block:: cpp :class: doxyrest-title-code-block layer_normalization_forward() Default constructor. Produces an empty object. .. index:: pair: function; layer_normalization_forward .. _doxid-structdnnl_1_1layer__normalization__forward_1aff43626ba95cf18f0d1aa599d8e3c034: .. ref-code-block:: cpp :class: doxyrest-title-code-block layer_normalization_forward(const :ref:`primitive_desc`& pd) Constructs a layer normalization forward propagation primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - pd - Primitive descriptor for a layer normalization forward propagation primitive. .. index:: pair: function; layer_normalization_forward .. _doxid-structdnnl_1_1layer__normalization__forward_1ae13a2d7cb9f708b6a3d8f6ffd71c0a29: .. ref-code-block:: cpp :class: doxyrest-title-code-block layer_normalization_forward( const :ref:`primitive_desc`& pd, const std::vector& cache_blob ) Constructs a layer normalization forward propagation primitive from a cache blob. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - pd - Primitive descriptor for a layer normalization forward propagation primitive. * - cache_blob - Cache blob.