float6_e3m2fn data type
Defines a 6-bit floating point representation with:
- 1 sign bit
- 3 exponent bits, with bias of 3
- 2 mantissa bits
- Extended range: no infinity, no NaN.
- Subnormal numbers when biased exponent is 0.
Data type name
The data type is specified as "float6_e3m2fn".
Configuration
None.
Fill value representation
The fill value is specified in the same way as the core IEEE 754 floating point numbers: https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html#fill-value
- The constants
"Infinity","-Infinity", and"NaN"are not supported since there is no corresponding representation.
Codec compatibility
bytes
Encoded as a 1-byte value 0bXXSEEEMM. The "endian" parameter has no effect. The upper XX bits are ignored.
packbits
Encoded as a 6-bit value 0bSEEEMM.
See also
- Specified as the E3M2 format by OpenCompute MX.
- Python implementation available at https://pypi.org/project/ml-dtypes/
- Implemented in LLVM/MLIR as
Float6E3M2FN.
Current maintainers
- Jeremy Maitin-Shepard (@jbms), Google
