pytorch/torch/quantization
Supriya Rao 1fde54d531 [quant][qat] Ensure fake_quant and observer can be disabled on scriptmodule (#44773)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44773

The model is created and prepared using fx APIs and then scripted for training.
In order to test QAT on scriptmodel we need to be able to disable/enable fake_quant
and observer modules on it.

Test Plan:
python test/test_quantization.py TestQuantizeFx.test_qat_and_script

Imported from OSS

Reviewed By: jerryzh168

Differential Revision: D23741354

fbshipit-source-id: 3fee7aa9b049d9901313b977710f4dc1c4501532
2020-09-17 10:21:52 -07:00
..
fx [quant][fx] Add node name as prefix to observer module name (#44765) 2020-09-17 10:17:42 -07:00
__init__.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
_correct_bias.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
_equalize.py Fix type annotation errors in torch.functional (#43446) 2020-08-26 08:27:59 -07:00
_learnable_fake_quantize.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
_numeric_suite.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
default_mappings.py [quant] ConvTranspose1d / ConvTranspose2d (#40371) 2020-09-14 14:25:06 -07:00
fake_quantize.py [quant][qat] Ensure fake_quant and observer can be disabled on scriptmodule (#44773) 2020-09-17 10:21:52 -07:00
fuse_modules.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
fuser_method_mappings.py [quant][eagermode][refactor] Add set/get method for quantization and fusion mappings (#43990) 2020-09-10 21:29:39 -07:00
observer.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
qconfig.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
quant_type.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
quantization_mappings.py [quant][eagermode][refactor] Add set/get method for quantization and fusion mappings (#43990) 2020-09-10 21:29:39 -07:00
quantize_fx.py [quant][graphmode][fx][api] Call fuse in prepare (#43984) 2020-09-08 18:09:26 -07:00
quantize_jit.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
quantize.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
stubs.py Factored out the default mappings 2019-10-03 11:52:21 -07:00