mxnet
Classes | Functions
Dnnl_api_shuffle
Collaboration diagram for Dnnl_api_shuffle:

Classes

struct  dnnl_shuffle_desc_t
 A descriptor of a shuffle operation. More...
 

Functions

dnnl_status_t DNNL_API dnnl_shuffle_forward_desc_init (dnnl_shuffle_desc_t *shuffle_desc, dnnl_prop_kind_t prop_kind, const dnnl_memory_desc_t *data_desc, int axis, dnnl_dim_t group_size)
 
dnnl_status_t DNNL_API dnnl_shuffle_backward_desc_init (dnnl_shuffle_desc_t *shuffle_desc, const dnnl_memory_desc_t *diff_data_desc, int axis, dnnl_dim_t group_size)
 

Detailed Description

Function Documentation

dnnl_status_t DNNL_API dnnl_shuffle_backward_desc_init ( dnnl_shuffle_desc_t shuffle_desc,
const dnnl_memory_desc_t diff_data_desc,
int  axis,
dnnl_dim_t  group_size 
)

Initializes a descriptor for shuffle backward propagation primitive.

Parameters
shuffle_descOutput descriptor for a shuffle primitive.
diff_data_descDiff source and diff destination memory descriptor.
axisThe axis along which the data is shuffled.
group_sizeShuffle group size.
Returns
dnnl_success on success and a status describing the error otherwise.
dnnl_status_t DNNL_API dnnl_shuffle_forward_desc_init ( dnnl_shuffle_desc_t shuffle_desc,
dnnl_prop_kind_t  prop_kind,
const dnnl_memory_desc_t data_desc,
int  axis,
dnnl_dim_t  group_size 
)

Initializes a descriptor for shuffle forward propagation primitive.

Parameters
shuffle_descOutput descriptor for a shuffle primitive.
prop_kindPropagation kind. Possible values are dnnl_forward_training and dnnl_forward_inference.
data_descSource and destination memory descriptor.
axisThe axis along which the data is shuffled.
group_sizeShuffle group size.
Returns
dnnl_success on success and a status describing the error otherwise.