评价此页

RecordingObserver#

class torch.ao.quantization.observer.RecordingObserver(dtype=torch.quint8)[源代码]#

该模块主要用于调试,并在运行时记录张量值。

参数
  • dtype – 量化数据类型

  • qscheme – Quantization scheme to be used

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