A primitive to shuffle tensor data along an axis. More...
Classes | |
struct | dnnl::shuffle_forward |
Shuffle forward propagation primitive. More... | |
struct | dnnl::shuffle_backward |
Shuffle backward propagation primitive. More... | |
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) |
Initializes a descriptor for shuffle forward propagation primitive. More... | |
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. More... | |
A primitive to shuffle tensor data along an axis.
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.
Inputs:
Outputs:
shuffle_desc | Output descriptor for a shuffle primitive. |
prop_kind | Propagation kind. Possible values are dnnl_forward_training and dnnl_forward_inference. |
data_desc | Source and destination memory descriptor. |
axis | The axis along which the data is shuffled. |
group_size | Shuffle 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 | ||
) |
Initializes a descriptor for shuffle backward propagation primitive.
Inputs:
Outputs:
shuffle_desc | Output descriptor for a shuffle primitive. |
diff_data_desc | Diff source and diff destination memory descriptor. |
axis | The axis along which the data is shuffled. |
group_size | Shuffle group size. |