torch.ao migration: fake_quantize.py, phase 1 (#64814)
authorVasiliy Kuznetsov <vasiliy@fb.com>
Mon, 13 Sep 2021 22:20:44 +0000 (15:20 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 13 Sep 2021 22:22:28 +0000 (15:22 -0700)
commit6101cbcedb02f9f7346187204c5a7f00ca516164
tree6cdcbbb7e7ca43a1b6f2020f46e6fea41b1e6e13
parente4314dac570a98d1138c63eb25fd4978a44511e5
torch.ao migration: fake_quantize.py, phase 1 (#64814)

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

1. move the file
```
hg mv caffe2/torch/quantization/fake_quantize.py caffe2/torch/ao/quantization/
```

2. create a new file in the old location and copy the imports
3. fix all callsites inside `torch`

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

Reviewed By: z-a-f

Differential Revision: D30866792

fbshipit-source-id: 7a221cb46c0ab01f1c5de9be061f09ecc83ce23e
test/quantization/ao_migration/test_quantize.py
torch/ao/quantization/__init__.py
torch/ao/quantization/fake_quantize.py [new file with mode: 0644]
torch/quantization/__init__.py
torch/quantization/fake_quantize.py
torch/quantization/qconfig.py
torch/quantization/quantization_mappings.py