.. index:: pair: group; Reorder .. _doxid-group__dnnl__api__reorder: Reorder ======= .. toctree:: :hidden: struct_dnnl_reorder.rst Overview ~~~~~~~~ A primitive to copy data between two memory objects. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block // structs struct :ref:`dnnl::reorder`; // global functions :ref:`dnnl_status_t` DNNL_API :ref:`dnnl_reorder_primitive_desc_create`( :ref:`dnnl_primitive_desc_t`* reorder_primitive_desc, :ref:`const_dnnl_memory_desc_t` src_desc, :ref:`dnnl_engine_t` src_engine, :ref:`const_dnnl_memory_desc_t` dst_desc, :ref:`dnnl_engine_t` dst_engine, :ref:`const_dnnl_primitive_attr_t` attr ); .. _details-group__dnnl__api__reorder: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A primitive to copy data between two memory objects. This primitive is typically used to change the way the data is laid out in memory. .. rubric:: See also: :ref:`Reorder ` in developer guide Global Functions ---------------- .. index:: pair: function; dnnl_reorder_primitive_desc_create .. _doxid-group__dnnl__api__reorder_1ga20e455d1b6b20fb8a2a9210def44263b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`dnnl_status_t` DNNL_API dnnl_reorder_primitive_desc_create( :ref:`dnnl_primitive_desc_t`* reorder_primitive_desc, :ref:`const_dnnl_memory_desc_t` src_desc, :ref:`dnnl_engine_t` src_engine, :ref:`const_dnnl_memory_desc_t` dst_desc, :ref:`dnnl_engine_t` dst_engine, :ref:`const_dnnl_primitive_attr_t` attr ) Creates a primitive descriptor for a reorder primitive. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - reorder_primitive_desc - Output primitive descriptor. * - src_desc - Source memory descriptor. * - src_engine - Engine on which the source memory object will be located. * - dst_desc - Destination memory descriptor. * - dst_engine - Engine on which the destination memory object will be located. * - attr - Primitive attributes to use (can be NULL). .. rubric:: Returns: :ref:`dnnl_success ` on success and a status describing the error otherwise.