forked from pytorch/pytorch
-
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.
[PT2][Quant] Enable symbolic shape in linear quantization (pytorch#10…
…4473) When tracing with symbolic shapes, arbitrary sym_size nodes can appear in the graph. Earlier changes did not account for this and quantizer fails to annotate the right nodes. This diff fixes that by not annotating sym_size nodes, which should really not be relevant for quantization. As next steps, we should validate in quant workflow that a) sym_int nodes are not being quantized and b) add similar support, as this diff, for generic annotations Differential Revision: [D47132050](https://our.internmc.facebook.com/intern/diff/D47132050/) Pull Request resolved: pytorch#104473 Approved by: https://github.com/jerryzh168
- Loading branch information
1 parent
4e27e6c
commit bd0f0f4
Showing
3 changed files
with
116 additions
and
34 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
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