pytorch/torch/quantization
Supriya Rao 489af4ddcb [quant] Add quant APIs to save/load observer state_dict (#44846)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44846

The save function traverses the model state dict to pick out the observer stats
load function traverse the module hierarchy to load the state dict into module attributes depending on observer type

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

Imported from OSS

Reviewed By: raghuramank100

Differential Revision: D23746821

fbshipit-source-id: 05c571b62949a2833602d736a81924d77e7ade55
2020-09-29 01:52:42 -07:00
..
fx [FX][EZ] Fix bug where copying node made non-unique name (#45311) 2020-09-28 22:55:20 -07:00
__init__.py [quant][eagermode] Custom module support (#44835) 2020-09-23 15:39:40 -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
custom_module_class_mappings.py [quant][graphmode][fx] Custom module support (#44766) 2020-09-22 17:11:46 -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 [quant] Add quant APIs to save/load observer state_dict (#44846) 2020-09-29 01:52:42 -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] Fix ConvTranspose mapping (#44844) 2020-09-22 11:59:42 -07:00
quantize_fx.py [quant][graphmode][fx] qconfig_dict support more types of configurations (#44856) 2020-09-23 13:59:53 -07:00
quantize_jit.py [quant][graphmode][jit][api] Expose preserved_attrs from finalize to convert_jit (#44490) 2020-09-22 19:37:25 -07:00
quantize.py [quant][eagermode] Custom module support (#44835) 2020-09-23 15:39:40 -07:00
stubs.py Factored out the default mappings 2019-10-03 11:52:21 -07:00