pytorch / 2 / generated / torch.ao.quantization.fake_quantize.fixedqparamsfakequantize.html

FixedQParamsFakeQuantize

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

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

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