pytorch/torch/quantization
Vasiliy Kuznetsov f15ab8a7f2 AO migration: replace torch internal callsites (#94170)
Summary:

Do the following renames:
`torch.quantization` -> `torch.ao.quantization`
`torch.nn.quantized` -> `torch.ao.nn.quantized`
`torch.nn.quantizable` -> `torch.ao.nn.quantizable`
`torch.nn.qat` -> `torch.ao.nn.qat`
`torch.nn.intrinsic` -> `torch.ao.nn.intrinsic`

And then, do
`torch.ao.nn.quantized._reference` -> `torch.ao.nn.quantized.reference` to clean up the aftermath of https://github.com/pytorch/pytorch/pull/84974

Then, manually update `test/test_module_init.py` to fix hanging whitespace due to the replace.

Run this script to do the replacements: https://gist.github.com/vkuzo/7f7afebf8c31b9ba48306223e68a1c82

This is for https://github.com/pytorch/pytorch/issues/81667

Test plan: CI
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94170
Approved by: https://github.com/jerryzh168
2023-02-07 02:32:23 +00:00
..
fx AO migration: replace torch internal callsites (#94170) 2023-02-07 02:32:23 +00:00
__init__.py [ao] fixing public v private for torch.ao.nn.X (#87883) 2022-12-15 03:03:07 +00:00
_numeric_suite_fx.py
_numeric_suite.py
fake_quantize.py
fuse_modules.py AO migration: replace torch internal callsites (#94170) 2023-02-07 02:32:23 +00:00
fuser_method_mappings.py [ao] fuser_method_mappings.py fixing public v private (#87516) 2022-11-10 21:37:31 +00:00
observer.py
qconfig.py [ao] qconfig.py fix public v private (#87515) 2022-11-09 22:30:03 +00:00
quant_type.py [ao] quant_type.py fixing public v private (#87519) 2022-11-15 15:42:31 +00:00
quantization_mappings.py
quantize_fx.py Revert "Reland "Add heirachical module names to torchFX graph.node" (#90205)" 2022-12-13 17:47:07 +00:00
quantize_jit.py
quantize.py [ao] making _is_activation_post_process private with BC (#90554) 2022-12-16 08:09:33 +00:00
stubs.py
utils.py