[quant][graphmode][fx][bc-breaking] Support for reference pattern for fixqparam ops...
authorJerry Zhang <jerryzh@fb.com>
Tue, 17 Aug 2021 21:40:19 +0000 (14:40 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 17 Aug 2021 21:42:40 +0000 (14:42 -0700)
commitbcddc71f267a6c736c7013feae81bbad18b33d86
tree5d06ab7f963fcce19662e2387733a6a9cc5870fb
parent9cd24e12a1fc3f725da4c0bc113cb049128e608c
[quant][graphmode][fx][bc-breaking] Support for reference pattern for fixqparam ops in eval mode (#62608)

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

Insert extra fixeqparam fake quant in the output of fixed qparam ops in fbgemm e.g. sigmoid
so that we can produce reference patterns for these ops

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

Imported from OSS

Reviewed By: iramazanli

Differential Revision: D30053978

fbshipit-source-id: c527944b6e791bb4d45ebe96265af52794203695
test/quantization/fx/test_numeric_suite_fx.py
test/quantization/fx/test_quantize_fx.py
torch/quantization/fx/quantization_patterns.py