.. index:: pair: struct; dnnl::lrn_forward::desc .. _doxid-structdnnl_1_1lrn__forward_1_1desc: struct dnnl::lrn_forward::desc ============================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for an LRN forward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_lrn_desc_t` :target:`data`; // construction :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& data_desc, :ref:`memory::dim` local_size, float alpha, float beta, float k = 1.f ); }; .. _details-structdnnl_1_1lrn__forward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for an LRN forward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1lrn__forward_1_1desc_1affd48c5e9b111e6e204fdd2849984d9c: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& data_desc, :ref:`memory::dim` local_size, float alpha, float beta, float k = 1.f ) Constructs a descriptor for a LRN 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 `. * - aalgorithm - LRN algorithm kind: either :ref:`dnnl::algorithm::lrn_across_channels `, or :ref:`dnnl::algorithm::lrn_within_channel `. * - data_desc - Source and destination memory descriptors. * - local_size - Regularization local size. * - alpha - The alpha regularization parameter. * - beta - The beta regularization parameter. * - k - The k regularization parameter.