[quant] AO migration of the `torch/quantization/utils.py` (phase 1) (#64919)
authorZafar Takhirov <zaf@fb.com>
Fri, 17 Sep 2021 03:29:05 +0000 (20:29 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Sep 2021 04:30:18 +0000 (21:30 -0700)
commit02dec91212c66c1244343770206bda883980fd29
treebc25cd49d102f906da4dd9917788721e219219a2
parent64641eaee685c858068fee9e78c88c862886854b
[quant] AO migration of the `torch/quantization/utils.py` (phase 1) (#64919)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64919

AO Team is migrating the existing torch.quantization into torch.ao.quantization. We are doing it one file at a time to make sure that the internal callsites are updated properly. This migrates the quantization utilities.
ghstack-source-id: 138303325

Test Plan: `buck test mode/dev //caffe2/test:quantization`

Reviewed By: jerryzh168

Differential Revision: D30899082

fbshipit-source-id: 85eb38c419e417147e71758b682cd095308dd0c9
test/quantization/ao_migration/test_quantization.py
torch/ao/quantization/fuser_method_mappings.py
torch/ao/quantization/observer.py
torch/ao/quantization/quantization_mappings.py
torch/ao/quantization/utils.py [new file with mode: 0644]
torch/quantization/utils.py