[quant] Removing hardcoded "torch.quantization.observer" for migration (#64981)
authorCharles David Hernandez <cdhernandez@fb.com>
Wed, 15 Sep 2021 22:15:02 +0000 (15:15 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Sep 2021 22:22:19 +0000 (15:22 -0700)
commit37bcefa248d47ffb844dce70b1f03b7e6f5aedff
tree4cae4261c2e025f1069feffefbe4f226bbb4f133
parentfe0f9d1dafb9791cb08635636a01128850d17538
[quant] Removing hardcoded "torch.quantization.observer" for migration (#64981)

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

this would have cause errors when observer.py was moved to ao.

see: D30391189
ghstack-source-id: 138118430

Test Plan:
buck test mode/opt //caffe2/test:quantization -- --exact 'caffe2/test:quantization - test_dynamic_quant_multi_uses (quantization.jit.test_quantize_jit.TestQuantizeDynamicJitPasses)'

buck test mode/opt //caffe2/test:quantization -- --exact 'caffe2/test:quantization - test_save_load_state_dict_script (quantization.core.test_workflow_module.TestObserver)'

Reviewed By: supriyar

Differential Revision: D30432008

fbshipit-source-id: 754727a89c78f6ceada6f8ff92c304f3953f38fc
torch/csrc/jit/passes/quantization/insert_quant_dequant.cpp
torch/quantization/observer.py
torch/quantization/qconfig.py