Expand description
Software e2m1 conversion, kept beside the other minifloat codecs in
cubecl_core::post_processing::fp4 and re-exported here for the quantized readers.
Modules§
Functions§
- e2m1_
bits_ to_ float - Decode one
e2m1code per lane, held in the low nibble of each lane ofcode. - e2m1_
packed_ bits_ to_ float - Decode the
Ne2m1codes packed into the low4 * Nbits ofword, lowest nibble first. - float_
to_ e2m1_ bits - Encode one
e2m1code per lane into the low nibble of each lane, rounding to nearest with ties to even and saturating at±6.