RecordingObserver

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

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

参数
  • dtype – 数据的量化类型

  • qscheme – 用于指定的量化方案

  • reduce_range - 将量化数据类型的范围减少一位

本页目录