.. index:: pair: struct; dnnl::matmul::desc .. _doxid-structdnnl_1_1matmul_1_1desc: struct dnnl::matmul::desc ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Descriptor for a matmul primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct desc { // fields :ref:`dnnl_matmul_desc_t` :target:`data`; // construction :ref:`desc`( const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc ); :ref:`desc`( const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& bias_desc, const :ref:`memory::desc`& dst_desc ); }; .. _details-structdnnl_1_1matmul_1_1desc: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Descriptor for a matmul primitive. Construction ------------ .. index:: pair: function; desc .. _doxid-structdnnl_1_1matmul_1_1desc_1a44e9e36ad615dc438fc96c74317fe487: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( const :ref:`memory::desc`& src_desc, const :ref:`memory::desc`& weights_desc, const :ref:`memory::desc`& dst_desc ) Constructs a descriptor for a matmul primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - src_desc - Memory descriptor for source (matrix A). * - weights_desc - Memory descriptor for weights (matrix B). * - dst_desc - Memory descriptor for destination (matrix C). .. index:: pair: function; desc .. _doxid-structdnnl_1_1matmul_1_1desc_1a6c302d130aa85dc058f3f19a2612bcd3: .. ref-code-block:: cpp :class: doxyrest-title-code-block desc( 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 a matmul primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - src_desc - Memory descriptor for source (matrix A). * - weights_desc - Memory descriptor for weights (matrix B). * - dst_desc - Memory descriptor for destination (matrix C). * - bias_desc - Memory descriptor for bias.