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.
- See also
- Reorder in developer guide
◆ dnnl_reorder_primitive_desc_create()
Creates a primitive descriptor for a reorder primitive.
- Parameters
-
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). |
- Returns
- dnnl_success on success and a status describing the error otherwise.
- Examples
- cnn_inference_f32.c, cpu_cnn_training_f32.c, and cross_engine_reorder.c.