.. index:: pair: struct; dnnl::inner_product_forward::desc .. _doxid-structdnnl_1_1inner__product__forward_1_1desc: struct dnnl::inner_product_forward::desc ======================================== .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for an inner product forward propagation primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_inner_product_desc_t` :target:`data`; // construction :ref:`desc`( :ref:`prop_kind` aprop_kind, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc ); :ref:`desc`( :ref:`prop_kind` aprop_kind, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc ); }; .. _details-structdnnl_1_1inner__product__forward_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for an inner product forward propagation primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1inner__product__forward_1_1desc_1a30dfb10aad7d4a2ed19761ae454643f3: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc ) Constructs a descriptor for an inner product forward propagation primitive with bias. .. note:: All the memory descriptors may be initialized with the :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. .. 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 `. * - src_desc - Memory descriptor for src. * - weights_desc - Memory descriptor for diff weights. * - bias_desc - Memory descriptor for diff bias. * - dst_desc - Memory descriptor for diff dst. .. index:: pair: function; desc .. _doxid-structdnnl_1_1inner__product__forward_1_1desc_1a26f9ccb7d914078d1eee94634025edfe: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( :ref:`prop_kind` aprop_kind, const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc ) Constructs a descriptor for an inner product forward propagation primitive without bias. .. note:: All the memory descriptors may be initialized with the :ref:`dnnl::memory::format_tag::any ` value of ``format_tag``. .. 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 `. * - src_desc - Memory descriptor for src. * - weights_desc - Memory descriptor for diff weights. * - dst_desc - Memory descriptor for dst.