enum dnnl_data_type_t

Overview

Data type specification. More…

#include <dnnl_common_types.h>

enum dnnl_data_type_t
{
    dnnl_data_type_undef = 0,
    dnnl_f16             = 1,
    dnnl_bf16            = 2,
    dnnl_f32             = 3,
    dnnl_s32             = 4,
    dnnl_s8              = 5,
    dnnl_u8              = 6,
    dnnl_f64             = 7,
    dnnl_data_type_max   = 0x7fff,
};

Detailed Documentation

Data type specification.

Enum Values

dnnl_data_type_undef

Undefined data type, used for empty memory descriptors.

dnnl_f16

16-bit/half-precision floating point.

dnnl_bf16

non-standard 16-bit (bfloat16 w/ 7 bit mantissa) floating point.

dnnl_f32

32-bit/single-precision floating point.

dnnl_s32

32-bit signed integer.

dnnl_s8

8-bit signed integer.

dnnl_u8

8-bit unsigned integer.

dnnl_f64

64-bit/double-precision floating point.

dnnl_data_type_max

Parameter to allow internal only data_types without undefined behavior.

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