invert_mxfp8_scale#

nvmath.linalg.advanced.helpers.matmul.invert_mxfp8_scale(scale)[source]#

Compute a reciprocal of MXFP8 block scale.

Parameters:

scale – MXFP8 block scale tensor.

Returns:

An MXFP8 block scale factors tensor with reciprocals of the values in scale.