fuse_modules.py 731 B

12345678910111213141516171819202122
  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/quantization/fuse_modules.py`, while adding an import statement
  7. here.
  8. """
  9. # TODO: These functions are not used outside the `fuse_modules.py`
  10. # Keeping here for now, need to remove them later.
  11. from torch.ao.quantization.fuse_modules import (
  12. _fuse_modules,
  13. _get_module,
  14. _set_module,
  15. fuse_known_modules,
  16. fuse_modules,
  17. get_fuser_method,
  18. )
  19. # for backward compatiblity
  20. from torch.ao.quantization.fuser_method_mappings import fuse_conv_bn, fuse_conv_bn_relu