pytorch/torch/quantization
Paul Shao b992a927a9 Clearer Semantics and Naming for Customized Quantization Range Initialization in Observer (#42602)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42602

In this diff, clearer semantics and namings for are introduced by splitting the original `init_dynamic_qrange` into 2 separate `Optional[int]` types `qmin` and `qmax` to avoid the confusion of the parameters with dynamic quantization.

The `qmin` and `qmax` parameters allow customers to specify their own customary quantization range and enables specific use cases for lower bit quantization.

Test Plan:
To assert the correctness and compatibility of the changes with existing observers, on a devvm, execute the following command to run the unit tests:

`buck test //caffe2/test:quantization -- observer`

Reviewed By: vkuzo, raghuramank100

Differential Revision: D22948334

fbshipit-source-id: 275bc8c9b5db4ba76fc2e79ed938376ea4f5a37c
2020-08-13 21:15:23 -07:00
..
__init__.py [quant] Expose register activation post process hook function to user (#42342) 2020-08-03 12:28:42 -07:00
_equalize.py cross_layer_equalization (#41685) 2020-07-22 08:39:23 -07:00
_learnable_fake_quantize.py Extending Learnable Fake Quantize module to support gradient scaling and factory (partial) construction (#41969) 2020-07-29 10:22:26 -07:00
_numeric_suite.py Remove unused Logger in get_matching_activations (#41023) 2020-07-07 00:33:07 -07:00
default_mappings.py qat eager: remove unneeded modules (#40396) 2020-06-22 17:45:51 -07:00
fake_quantize.py [quant][doc] Print more info for fake quantize module (#43031) 2020-08-13 20:27:36 -07:00
fuse_modules.py Quantization: preserving pre and post forward hooks (#37233) 2020-07-13 12:41:24 -07:00
observer.py Clearer Semantics and Naming for Customized Quantization Range Initialization in Observer (#42602) 2020-08-13 21:15:23 -07:00
qconfig.py Revert D22217029: Add fake quantize operator that works in backward pass 2020-08-07 23:04:40 -07:00
quantize_jit.py [quant][graphmode] Enable inplace option for top level API (#40414) 2020-06-23 16:42:48 -07:00
quantize.py [reland][quant][fix] Remove activation_post_process in qat modules (#42343) (#43015) 2020-08-13 20:44:14 -07:00
stubs.py Factored out the default mappings 2019-10-03 11:52:21 -07:00