enum dnnl_format_kind_t

Overview

Memory format kind. More…

#include <dnnl_types.h>

enum dnnl_format_kind_t
{
    dnnl_format_kind_undef  = 0,
    dnnl_format_kind_any,
    dnnl_blocked,
    dnnl_format_kind_opaque,
    dnnl_format_kind_sparse,
    dnnl_format_kind_max    = 0x7fff,
};

Detailed Documentation

Memory format kind.

Enum Values

dnnl_format_kind_undef

Undefined memory format kind, used for empty memory descriptors.

dnnl_format_kind_any

A special format kind that indicates that the actual format will be selected by a primitive automatically.

dnnl_blocked

A tensor in a generic format described by the stride and blocking values in each dimension.

dnnl_format_kind_opaque

A special format kind that indicates that tensor format is opaque.

dnnl_format_kind_sparse

Format kind for sparse tensors.

dnnl_format_kind_max

Parameter to allow internal only format kinds without undefined behavior.

This parameter is chosen to be valid for so long as sizeof(int) >= 2.