torch.ao.quantization.observer.RecordingObserver#

class torch.ao.quantization.observer.RecordingObserver(**kwargs)[源代码]#

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

参数
  • dtype – Quantized data type

  • qscheme – Quantization scheme to be used

  • reduce_range – Reduces the range of the quantized data type by 1 bit