ScalingType#
- class torchao.float8.ScalingType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source][source]#
Defines the type of scaling to use for casting to float8.
Values:
DYNAMIC: Compute scaling factor dynamically based on the tensor’s values.DISABLED: Skip scaling for this tensor, leave it in its original precision.