utils.py 701 B

123456789101112131415
  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 _ntuple_from_first
  10. from torch.ao.nn.quantized.modules.utils import _pair_from_first
  11. from torch.ao.nn.quantized.modules.utils import _quantize_weight
  12. from torch.ao.nn.quantized.modules.utils import _hide_packed_params_repr
  13. from torch.ao.nn.quantized.modules.utils import WeightedQuantizedModule