forked from pytorch/ao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add general fake_quantize_affine op (pytorch#492)
Summary: Add a general `fake_quantize_affine` op that simulates `quantize_affine` + `dequantize_affine` but without casting the intermediate quantized values to lower bit-widths, intended for quantization-aware training (QAT). Test Plan: python test/quantization/test_quant_primitives.py -k test_fake_quantize_affine
- Loading branch information
1 parent
2526b17
commit caafb88
Showing
2 changed files
with
125 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters