.. index:: pair: struct; dnnl::matmul .. _doxid-structdnnl_1_1matmul: struct dnnl::matmul =================== .. toctree:: :hidden: struct_dnnl_matmul_primitive_desc.rst Overview ~~~~~~~~ Matrix multiplication (matmul) primitive. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct matmul: public :ref:`dnnl::primitive` { // structs struct :ref:`primitive_desc`; // construction :ref:`matmul`(); :ref:`matmul`(const :ref:`primitive_desc`& pd); :ref:`matmul`(const :ref:`primitive_desc`& pd, const std::vector& cache_blob); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // enums enum :ref:`kind`; // methods :ref:`handle`& :ref:`operator =` (const :ref:`handle`&); :ref:`handle`& :ref:`operator =` (:ref:`handle`&&); void :ref:`reset`(T t, bool weak = false); T :ref:`get`(bool allow_empty = false) const; :ref:`operator T` () const; :ref:`operator bool` () const; bool :ref:`operator ==` (const :ref:`handle`& other) const; bool :ref:`operator !=` (const :ref:`handle`& other) const; :ref:`const_dnnl_primitive_desc_t` :ref:`get_primitive_desc`() const; :ref:`kind` :ref:`get_kind`() const; std::vector :ref:`get_cache_blob`() const; void :ref:`execute`(const :ref:`stream`& astream, const std::unordered_map`>& args) const; :ref:`handle`(); :ref:`handle`(); :ref:`handle`(); :ref:`handle`(); .. _details-structdnnl_1_1matmul: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Matrix multiplication (matmul) primitive. Construction ------------ .. index:: pair: function; matmul .. _doxid-structdnnl_1_1matmul_1af1466fb3b36d0f10e59b41e47e940b02: .. ref-code-block:: cpp :class: doxyrest-title-code-block matmul() Default constructor. Produces an empty object. .. index:: pair: function; matmul .. _doxid-structdnnl_1_1matmul_1aa1052f851d887db245f58f014cd6b0f5: .. ref-code-block:: cpp :class: doxyrest-title-code-block matmul(const :ref:`primitive_desc`& pd) Constructs a matmul primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - pd - Primitive descriptor for a matmul primitive. .. index:: pair: function; matmul .. _doxid-structdnnl_1_1matmul_1a4953eb406b96407bb796eb47638ecfe4: .. ref-code-block:: cpp :class: doxyrest-title-code-block matmul(const :ref:`primitive_desc`& pd, const std::vector& cache_blob) Constructs a matmul primitive from a cache blob. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - pd - Primitive descriptor for a matmul primitive. * - cache_blob - Cache blob.