pytorch
ee9335a6 - [Quant][fx] Define native backend_config_dict for linear and conv (#74636)

Commit
2 years ago
[Quant][fx] Define native backend_config_dict for linear and conv (#74636) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/74636 This commit changes how quantization patterns for linear and conv are set up in prepare. Previously, these were set up through ConvReluQuantizeHandler and LinearReLUQuantizeHandler. After this commit, however, these were set up through the corresponding entries in the native backend_config_dict, rendering the above quantize handlers no longer necessary. In future commits, we will do the same for the remaining ops. Test Plan: python test/test_quantization.py TestQuantizeFx python test/test_quantization.py TestQuantizeFxOps Imported from OSS Reviewed By: jerryzh168, ngimel Differential Revision: D35225680 fbshipit-source-id: 4a79f63a11fce46701eb17aaf3619c1e827d72a4 (cherry picked from commit 475f599821cd32d3ba71ba086885ecdc4cbee755)
Author
Committer
Parents
Loading