Shortcuts

FakeQuantizer

class torchao.quantization.qat.FakeQuantizer(config: FakeQuantizeConfig)[source]

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

forward(x: Tensor) Tensor[source]

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources