Skip to content

encoding.NumericFormat enum

← Attribute reference

Target-independent encoded numeric format.

Cases

Keyword Value Description
none 0 —
f64 1 —
f32 2 —
tf32 3 —
f16 4 —
bf16 5 —
i32 6 —
u32 7 —
i16 8 —
u16 9 —
i8 10 —
u8 11 —
i6 12 —
u6 13 —
i5 14 —
u5 15 —
i4 16 —
u4 17 —
i3 18 —
u3 19 —
i2 20 —
u2 21 —
i1 22 —
u1 23 —
f8e4m3 24 —
f8e5m2 25 —
f8e4m3fn 26 —
f8e4m3fnuz 27 —
f8e5m2fnuz 28 —
e8m0 29 —
bf8 30 —
f6e3m2 31 —
f6e2m3 32 —
bf6 33 —
f4e2m1 34 —
ternary 35 —
sign_bit 36 —
codebook_index 37 —
quant_i8 38 —
quant_i6 39 —
quant_i4 40 —
bfp16ebs8 41 —

Used by

  • #encoding.match.element_format
  • #encoding.operand.element_format
  • #encoding.operand.scale_format
  • #encoding.operand.secondary_scale_format