Intel(R) Math Kernel Library for Deep Neural Networks (Intel(R) MKL-DNN)  1.0.4
Performance library for Deep Learning
Functions

A primitive to copy data between memory formats. More...

Functions

mkldnn_status_t MKLDNN_API mkldnn_reorder_primitive_desc_create (mkldnn_primitive_desc_t *reorder_primitive_desc, const mkldnn_memory_desc_t *src_md, mkldnn_engine_t src_engine, const mkldnn_memory_desc_t *dst_md, mkldnn_engine_t dst_engine, const_mkldnn_primitive_attr_t attr)
 Initializes a reorder_primitive_desc using the description of the source (src_engine and src_md) and destination (dst_engine and dst_md) memory, and an attr attribute. More...
 

Detailed Description

A primitive to copy data between memory formats.

See also
Reorder in developer guide
Reorder in C++ API

Function Documentation

◆ mkldnn_reorder_primitive_desc_create()

mkldnn_status_t MKLDNN_API mkldnn_reorder_primitive_desc_create ( mkldnn_primitive_desc_t reorder_primitive_desc,
const mkldnn_memory_desc_t src_md,
mkldnn_engine_t  src_engine,
const mkldnn_memory_desc_t dst_md,
mkldnn_engine_t  dst_engine,
const_mkldnn_primitive_attr_t  attr 
)

Initializes a reorder_primitive_desc using the description of the source (src_engine and src_md) and destination (dst_engine and dst_md) memory, and an attr attribute.

Inputs:

Outputs:

Examples:
cpu_cnn_inference_f32.c, cpu_cnn_training_f32.c, and gpu_getting_started.c.