_numeric_suite.py 779 B

12345678910111213141516171819202122232425262728
  1. # flake8: noqa: F401
  2. r"""
  3. This file is in the process of migration to `torch/ao/quantization`, and
  4. is kept here for compatibility while the migration process is ongoing.
  5. If you are adding a new entry/functionality, please, add it to the
  6. `torch/ao/ns/_numeric_suite.py`, while adding an import statement
  7. here.
  8. """
  9. from torch.ao.ns._numeric_suite import (
  10. NON_LEAF_MODULE_TO_ADD_OBSERVER_ALLOW_LIST,
  11. _find_match,
  12. compare_weights,
  13. _get_logger_dict_helper,
  14. get_logger_dict,
  15. Logger,
  16. ShadowLogger,
  17. OutputLogger,
  18. _convert_tuple_to_list,
  19. _dequantize_tensor_list,
  20. Shadow,
  21. prepare_model_with_stubs,
  22. _is_identical_module_type,
  23. compare_model_stub,
  24. get_matching_activations,
  25. prepare_model_outputs,
  26. compare_model_outputs,
  27. )