enum dnnl::graph::logical_tensor::data_type

Overview

Data Type. More…

#include <dnnl_graph.hpp>

enum data_type
{
    undef   = dnnl_data_type_undef,
    f16     = dnnl_f16,
    bf16    = dnnl_bf16,
    f32     = dnnl_f32,
    s32     = dnnl_s32,
    s8      = dnnl_s8,
    u8      = dnnl_u8,
    boolean = dnnl_boolean,
    f8_e5m2 = dnnl_f8_e5m2,
    f8_e4m3 = dnnl_f8_e4m3,
};

Detailed Documentation

Data Type.

Enum Values

f16

16-bit/half-precision floating point.

bf16

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

f32

32-bit/single-precision floating point.

s32

32-bit signed integer.

s8

8-bit signed integer.

u8

8-bit unsigned integer.

boolean

Boolean data type. Size is C++ implementation defined.

f8_e5m2

OFP8 standard 8-bit floating-point with a 5-bit exponent and a 2-bit mantissa.

f8_e4m3

OFP8 standard 8-bit floating-point with a 4-bit exponent and a 3-bit mantissa.