.. index:: pair: struct; dnnl_lrn_desc_t .. _doxid-structdnnl__lrn__desc__t: struct dnnl_lrn_desc_t ====================== .. toctree:: :hidden: Overview ~~~~~~~~ A descriptor of a Local Response Normalization (LRN) operation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct dnnl_lrn_desc_t { // fields :ref:`dnnl_primitive_kind_t` :ref:`primitive_kind`; :ref:`dnnl_prop_kind_t` :ref:`prop_kind`; :ref:`dnnl_alg_kind_t` :ref:`alg_kind`; :ref:`dnnl_memory_desc_t` :ref:`data_desc`; :ref:`dnnl_memory_desc_t` :ref:`diff_data_desc`; :ref:`dnnl_dim_t` :ref:`local_size`; float :ref:`lrn_alpha`; float :ref:`lrn_beta`; float :ref:`lrn_k`; }; .. _details-structdnnl__lrn__desc__t: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A descriptor of a Local Response Normalization (LRN) operation. Fields ------ .. index:: pair: variable; primitive_kind .. _doxid-structdnnl__lrn__desc__t_1ad46119218356921c61823ab5213825f7: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_primitive_kind_t` primitive_kind The kind of primitive. Used for self-identifying the primitive descriptor. Must be :ref:`dnnl_lrn `. .. index:: pair: variable; prop_kind .. _doxid-structdnnl__lrn__desc__t_1a95d6f623b7874d24aaa89aabbf54adcf: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_prop_kind_t` prop_kind The kind of propagation. Possible values: :ref:`dnnl_forward_training `, :ref:`dnnl_forward_inference `, :ref:`dnnl_backward `, and :ref:`dnnl_backward_data `. .. index:: pair: variable; alg_kind .. _doxid-structdnnl__lrn__desc__t_1ac85e412ee28f0318187b361c9bb8785c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_alg_kind_t` alg_kind LRN algorithm. Possible values: :ref:`dnnl_lrn_within_channel ` and :ref:`dnnl_lrn_across_channels `. .. index:: pair: variable; data_desc .. _doxid-structdnnl__lrn__desc__t_1a9c1ed9b76189957ec269ae6ff2101b7b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` data_desc Source and destination memory descriptor. .. index:: pair: variable; diff_data_desc .. _doxid-structdnnl__lrn__desc__t_1a42b485e303aa768f8a3508d7b6395e97: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_memory_desc_t` diff_data_desc Source and destination gradient memory descriptor. .. index:: pair: variable; local_size .. _doxid-structdnnl__lrn__desc__t_1a1ef655bc7a8757fe45d70d468dcbe68b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_dim_t` local_size The number of channels to sum over (for cross-channel LRN) or the side length of the square region to sum over (for within-channel LRN). .. index:: pair: variable; lrn_alpha .. _doxid-structdnnl__lrn__desc__t_1a5818f4c2d734f46a4a6fd2f97aef257b: .. ref-code-block:: cpp :class: doxyrest-title-code-block float lrn_alpha LRN alpha parameter. .. index:: pair: variable; lrn_beta .. _doxid-structdnnl__lrn__desc__t_1a237d66a9cfc9f46a607cbf0d4c4e3bf8: .. ref-code-block:: cpp :class: doxyrest-title-code-block float lrn_beta LRN beta parameter. .. index:: pair: variable; lrn_k .. _doxid-structdnnl__lrn__desc__t_1a11fefcbec2d926a1315ec7660e6ae6c1: .. ref-code-block:: cpp :class: doxyrest-title-code-block float lrn_k LRN k parameter.