Encoding Analyzers

class aimet_torch.v2.quantization.encoding_analyzer.EncodingAnalyzer(observer)[source]

Variants

class aimet_torch.v2.quantization.encoding_analyzer.MinMaxEncodingAnalyzer(shape)[source]

Encoding Analyzer for Min-Max calibration technique

class aimet_torch.v2.quantization.encoding_analyzer.SqnrEncodingAnalyzer(shape, num_bins=2048, *, asymmetric_delta_candidates=17, symmetric_delta_candidates=101, offset_candidates=21, max_parallelism=64, gamma=3.0)[source]

Encoding Analyzer for SQNR Calibration technique

Parameters:
  • shape (tuple) – Shape of calculated encoding

  • num_bins (int) – number of bins to use per histogram

  • asymmetric_delta_candidates – number of delta values to search over in asymmetric mode

  • symmetric_delta_candidates – number of delta values to search over in symmetric mode

  • offset_candidates – number of offset values to search over in asymmetric mode

  • max_parallelism – maximum number of encodings to process parallely (higher number results in higher memory usage but faster computation)

  • gamma – weighting factor on clipping noise (higher value results in less clipping noise)

class aimet_torch.v2.quantization.encoding_analyzer.PercentileEncodingAnalyzer(shape, num_bins=2048, percentile=100)[source]

Encoding Analyzer for Percentile calibration technique