.. index:: pair: struct; dnnl::eltwise_forward::desc .. _doxid-structdnnl_1_1eltwise__forward_1_1desc: struct dnnl::eltwise_forward::desc ================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for an elementwise forward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_eltwise_desc_t` :target:`data`; // construction :ref:`desc`( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& data_desc, float alpha = 0, float beta = 0 ); }; .. _details-structdnnl_1_1eltwise__forward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for an elementwise forward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1eltwise__forward_1_1desc_1aaae0eddf378516c155c2946e15972d98: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, :ref:`algorithm` aalgorithm, const :ref:`memory::desc`& data_desc, float alpha = 0, float beta = 0 ) Constructs a descriptor for an elementwise 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 - Elementwise algorithm kind. * - data_desc - Source and destination memory descriptors. * - alpha - The alpha parameter for the elementwise operation. Specific meaning depends on the algorithm. * - beta - The beta parameter for the elementwise operation. Specific meaning depends on the algorithm.