torch.ao migration: stubs.py phase 1 (#64861)
authorSupriya Rao <supriyar@fb.com>
Mon, 13 Sep 2021 15:38:41 +0000 (08:38 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 13 Sep 2021 15:40:29 +0000 (08:40 -0700)
commit9d52651d4eba528fa58af9251c5909de45efaa3e
tree20e784b1d5e5654499240ac23b7bdabd4c7f0a7b
parentc08b2491cc74ae9e121b351bb89a7e67ce7029f6
torch.ao migration: stubs.py phase 1 (#64861)

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

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

  2. create a new file in the old location and copy the imports
  3. fix all call sites inside `torch`
ghstack-source-id: 137885365

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

Reviewed By: jerryzh168

Differential Revision: D30879678

fbshipit-source-id: a2d24f25d01064212aca15e94e8c78240ba48953
test/quantization/ao_migration/test_quantize.py
torch/ao/quantization/quantize.py
torch/ao/quantization/stubs.py [new file with mode: 0644]
torch/quantization/quantization_mappings.py
torch/quantization/stubs.py