Module: tf.compat.v1.dtypes.experimental

Public API for tf._api.v2.dtypes.experimental namespace

float4_e2m1fn Instance of tf.dtypes.DType

4-bit float with 2 exponent bits and 1 mantissa bits, with extended finite range. This type has no representation for both inf and NaN.

float8_e4m3b11fnuz Instance of tf.dtypes.DType

8-bit float with 4 exponent bits and 3 mantissa bits, with extended finite range and 11 bits of bias. This type has no representation for inf, and only one NaN value: 0x80.

float8_e4m3fn Instance of tf.dtypes.DType

8-bit float with 4 exponent bits and 3 mantissa bits, with extended finite range. This type has no representation for inf, and only two NaN values: 0xFF for negative NaN, and 0x7F for positive NaN.

float8_e4m3fnuz Instance of tf.dtypes.DType

8-bit float with 4 exponent bits and 3 mantissa bits, with extended finite range. This type has no representation for inf, and only one NaN value: 0x80.

float8_e5m2 Instance of tf.dtypes.DType

8-bit float with 5 exponent bits and 2 mantissa bits.

float8_e5m2fnuz Instance of tf.dtypes.DType

8-bit float with 5 exponent bits and 2 mantissa bits, with extended finite range. This type has no representation for inf, and only one NaN value: 0x80.

int2 Instance of tf.dtypes.DType

Signed 2-bit integer.

int4 Instance of tf.dtypes.DType

Signed 4-bit integer.

uint2 Instance of tf.dtypes.DType

Unsigned 2-bit integer.

uint4 Instance of tf.dtypes.DType

Unsigned 4-bit integer.