You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 830 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. from .fake_quant import LSQ, TQT, FakeQuantize
  2. from .observer import (
  3. ExponentialMovingAverageObserver,
  4. HistogramObserver,
  5. MinMaxObserver,
  6. Observer,
  7. PassiveObserver,
  8. SyncExponentialMovingAverageObserver,
  9. SyncMinMaxObserver,
  10. )
  11. from .qconfig import (
  12. QConfig,
  13. calibration_qconfig,
  14. easyquant_qconfig,
  15. ema_fakequant_qconfig,
  16. ema_lowbit_fakequant_qconfig,
  17. min_max_fakequant_qconfig,
  18. passive_qconfig,
  19. sync_ema_fakequant_qconfig,
  20. tqt_qconfig,
  21. )
  22. from .quantize import (
  23. apply_easy_quant,
  24. disable_fake_quant,
  25. disable_observer,
  26. enable_fake_quant,
  27. enable_observer,
  28. propagate_qconfig,
  29. quantize,
  30. quantize_qat,
  31. reset_qconfig,
  32. )
  33. from .utils import (
  34. QParams,
  35. QuantMode,
  36. create_qparams,
  37. fake_quant_bias,
  38. fake_quant_tensor,
  39. )