Rate this Page

to_affine_quantized_fpx#

torchao.dtypes.to_affine_quantized_fpx(input_float: Tensor, _layout: Layout)[source]#

Create a floatx AffineQuantizedTensor from a high precision tensor. Floatx is represented as ebits and mbits, and supports the representation of float1-float7.