.. index:: pair: group; Concat .. _doxid-group__dnnl__api__concat: Concat ====== .. toctree:: :hidden: struct_dnnl_concat.rst Overview ~~~~~~~~ A primitive to concatenate data by arbitrary dimension. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block // structs struct :ref:`dnnl::concat`; // global functions :ref:`dnnl_status_t` DNNL_API :ref:`dnnl_concat_primitive_desc_create`( :ref:`dnnl_primitive_desc_t`* concat_primitive_desc, :ref:`dnnl_engine_t` engine, :ref:`const_dnnl_memory_desc_t` dst_desc, int n, int concat_dimension, :ref:`const_dnnl_memory_desc_t` const* src_descs, :ref:`const_dnnl_primitive_attr_t` attr ); .. _details-group__dnnl__api__concat: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A primitive to concatenate data by arbitrary dimension. .. rubric:: See also: :ref:`Concat ` in developer guide Global Functions ---------------- .. index:: pair: function; dnnl_concat_primitive_desc_create .. _doxid-group__dnnl__api__concat_1ga1bf9669d55a86d8ac8ff10d3e28f52b8: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_status_t` DNNL_API dnnl_concat_primitive_desc_create( :ref:`dnnl_primitive_desc_t`* concat_primitive_desc, :ref:`dnnl_engine_t` engine, :ref:`const_dnnl_memory_desc_t` dst_desc, int n, int concat_dimension, :ref:`const_dnnl_memory_desc_t` const* src_descs, :ref:`const_dnnl_primitive_attr_t` attr ) Creates a primitive descriptor for an out-of-place concatenation primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - concat_primitive_desc - Output primitive descriptor. * - dst_desc - Destination memory descriptor. * - n - Number of source parameters. * - concat_dimension - Source tensors will be concatenated over dimension with this index. Note that order of dimensions does not depend on memory format. * - src_descs - Array of source memory descriptors with ``n`` elements. * - attr - Primitive attributes to use (can be NULL). * - engine - Engine to use. .. rubric:: Returns: :ref:`dnnl_success ` on success and a status describing the error otherwise.