Finite-only E5M2FNUZ #
E5M2FNUZ gives the ONNX finite, NaN-supporting, unsigned-zero E5M2 variant a distinct Lean type.
That nominal identity prevents accidental interchange with OCP E5M2, whose infinity and signed
zero behavior differs even though both formats occupy one byte.
The runtime carrier is one UInt8. Balanced and throughput policies select exhaustive proved
byte tables for addition, subtraction, multiplication, division, and square root; latency uses
the exact arithmetic baseline. Fused multiply-add uses the proved generic single-rounding kernel.
Reference #
- ONNX, Float stored in 8 bits, E5M2FNUZ, https://onnx.ai/onnx/technical/float8.html.
Finite E5M2FNUZ with one NaN code, unsigned zero, and direct byte storage.
Instances For
The E5M2FNUZ encoding fits in its direct byte carrier.
Certified direct-byte E5M2FNUZ addition table.
Instances For
Certified direct-byte E5M2FNUZ subtraction table.
Instances For
Certified direct-byte E5M2FNUZ multiplication table.
Instances For
Certified direct-byte E5M2FNUZ division table.
Instances For
Certified direct-byte E5M2FNUZ square-root table.
Instances For
Package the five byte tables with the proved arithmetic FMA baseline.
Construct E5M2FNUZ from a natural bit pattern, reduced to eight bits.
Instances For
Read the complete E5M2FNUZ encoding byte.