TorchLean API

FloatLib.Floats.Formats.OCP.MX.E3M2

OCP MX E3M2 #

E3M2 is a six-bit finite floating element from the OCP microscaling specification. Its direct runtime carrier is a byte with an erased < 64 invariant. For addition, subtraction, multiplication, division, and square root, balanced and throughput planning select exhaustive proved tables; latency planning selects arithmetic kernels. Fused multiply-add keeps both a table and the generic proved kernel: throughput planning selects the table, while balanced and latency-oriented planning avoid its larger lookup footprint.

Reference #

OCP MX E3M2 six-bit element format with byte-backed storage.

    Instances For
      @[instance_reducible, always_inline]
      @[inline]

      Construct E3M2 from a natural pattern, reduced to six bits.

      Instances For
        @[inline]

        Read the byte whose low six bits contain the E3M2 code.

        Instances For