struct dnnl_shuffle_desc_t

Overview

A descriptor of a shuffle operation. More…

#include <dnnl_types.h>

struct dnnl_shuffle_desc_t
{
    // fields

    dnnl_primitive_kind_t primitive_kind;
    dnnl_prop_kind_t prop_kind;
    dnnl_memory_desc_t data_desc;
    int axis;
    dnnl_dim_t group_size;
};

Detailed Documentation

A descriptor of a shuffle operation.

Fields

dnnl_primitive_kind_t primitive_kind

The kind of primitive.

Used for self-identifying the primitive descriptor. Must be dnnl_shuffle.

dnnl_prop_kind_t prop_kind

The kind of propagation.

Possible values: dnnl_forward_training, dnnl_forward_inference, and dnnl_backward_data.

dnnl_memory_desc_t data_desc

Source and destination memory descriptor, and source and destination gradient memory descriptor.

int axis

Axis for shuffling.

dnnl_dim_t group_size

Number of groups.