Rate this Page

IntxFakeQuantizer#

class torchao.quantization.qat.IntxFakeQuantizer(config: IntxFakeQuantizeConfig)[source][source]#

Generic module for applying integer fake quantization to a tensor, as specified in the config.

forward(x: Tensor) Tensor[source][source]#

Apply fake quantization to the tensor based on the bit-width, granularity, symmetry, and other properties specified in the config.