[quant] AO migration of the `quantize.py` (resubmission) (#64445)
authorZafar Takhirov <zaf@fb.com>
Wed, 8 Sep 2021 11:57:28 +0000 (04:57 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 8 Sep 2021 11:58:47 +0000 (04:58 -0700)
commit9cc44aad21110e7dd481d4d1979c1569059144c2
treef884b79623fdc864a17d9118384bf87b5046e274
parent72274e2a2fd55019ec860e1743dbdc5b0c5a5624
[quant] AO migration of the `quantize.py` (resubmission) (#64445)

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

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 quantize.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`

Reviewed By: HDCharles

Differential Revision: D30734870

fbshipit-source-id: dc204f3cc46bff2cc81c95159eab9d333b43bb4b
test/quantization/ao_migration/__init__.py [new file with mode: 0644]
test/quantization/ao_migration/test_quantize.py [new file with mode: 0644]
test/test_quantization.py
torch/ao/quantization/__init__.py [new file with mode: 0644]
torch/ao/quantization/quantize.py [new file with mode: 0644]
torch/quantization/fx/convert.py
torch/quantization/fx/prepare.py
torch/quantization/fx/quantization_patterns.py
torch/quantization/fx/utils.py
torch/quantization/quantize.py