W3cubDocs

/PyTorch 2.9

FixedQParamsFakeQuantize

class torch.ao.quantization.fake_quantize.FixedQParamsFakeQuantize(observer) [source]

Simulate quantize and dequantize in training time.

Simulate quantize and dequantize with fixed quantization parameters in training time. Only per tensor quantization is supported.

extra_repr() [source]

Define a string representation of the object’s attributes.

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.ao.quantization.fake_quantize.FixedQParamsFakeQuantize.html