_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. _convert_tuple_to_list,
  11. _dequantize_tensor_list,
  12. _find_match,
  13. _get_logger_dict_helper,
  14. _is_identical_module_type,
  15. compare_model_outputs,
  16. compare_model_stub,
  17. compare_weights,
  18. get_logger_dict,
  19. get_matching_activations,
  20. Logger,
  21. NON_LEAF_MODULE_TO_ADD_OBSERVER_ALLOW_LIST,
  22. OutputLogger,
  23. prepare_model_outputs,
  24. prepare_model_with_stubs,
  25. Shadow,
  26. ShadowLogger,
  27. )