utils.py 539 B

1234567891011121314151617
  1. # flake8: noqa: F401
  2. r"""Quantized Modules.
  3. This file is in the process of migration to `torch/ao/nn/quantized`, 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. appropriate file under the `torch/ao/nn/quantized/modules`,
  7. while adding an import statement here.
  8. """
  9. from torch.ao.nn.quantized.modules.utils import (
  10. _hide_packed_params_repr,
  11. _ntuple_from_first,
  12. _pair_from_first,
  13. _quantize_weight,
  14. WeightedQuantizedModule,
  15. )