Shortcuts

FixedQParamsFakeQuantize

class torch.quantization.fake_quantize.FixedQParamsFakeQuantize(scale, zero_point, dtype=torch.quint8, qscheme=torch.per_tensor_affine, quant_min=0, quant_max=255)[source]

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

Parameters
  • scale (float) – fixed scale for the fake quantize module

  • zero_point (int) – fixed zero point for the fake quantize module

  • dtype

  • qscheme

  • quant_min

  • quant_max

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