W3cubDocs

/PyTorch 2.9

RecordingObserver

class torch.ao.quantization.observer.RecordingObserver(dtype=torch.quint8) [source]

The module is mainly for debug and records the tensor values during runtime.

Parameters
  • dtype – Quantized data type
  • qscheme – Quantization scheme to be used
  • reduce_range – Reduces the range of the quantized data type by 1 bit

© 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.observer.RecordingObserver.html