[quant] AO migration of the `quant_types.py` (phase 1) (#64916)
authorZafar Takhirov <zaf@fb.com>
Thu, 16 Sep 2021 00:24:09 +0000 (17:24 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 16 Sep 2021 00:30:00 +0000 (17:30 -0700)
commitc151d62f45d769ee43a611d0776c7325225f7a2a
treeab13a8ccc145219a8f36da29460ce67e972260f5
parenta42996f16e165de2c7f301da74a4de7eb3c0f452
[quant] AO migration of the `quant_types.py` (phase 1) (#64916)

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

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 quant_type.py from torch.quantization to torch.ao.quantization.
At this point both locations will be supported. Eventually the torch.quantization will be deprecated.

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

Reviewed By: vkuzo

Differential Revision: D30898422

fbshipit-source-id: 3e6126b49f0565a4136d6928cea9eb25368927ff
test/quantization/ao_migration/test_quantization.py
test/quantization/fx/test_quantize_fx.py
torch/ao/quantization/__init__.py
torch/ao/quantization/quant_type.py [new file with mode: 0644]
torch/quantization/quant_type.py
torch/quantization/utils.py
torch/testing/_internal/common_quantization.py