-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Quantization] Add quantizer filter pass to Solver (#2903)
### Changes Add a filtering pass in QuantizerPropagationSolver to remove unnessecary quantizers. ### Reason for changes The motivation is to remove not propagated quantizers before elementwise operations with constants or constant subgraphs. These quantizers do not influence performance and could badly influence accuracy metrics. ### Related tickets 144218 ### Tests Many tests reference were updated for all backends. I checked every changes and for all of them the new changes look correct. LSTM synthetic model from OpenVINO backend: ![image](https://github.com/user-attachments/assets/2f197cb0-8284-4caa-9895-6ff6faf7fa0f) ![image](https://github.com/user-attachments/assets/c5dfbf59-9e5e-4ff3-80eb-077cda45c722)
- Loading branch information
Showing
58 changed files
with
54,481 additions
and
13,271 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
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
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
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
6 changes: 3 additions & 3 deletions
6
tests/onnx/data/reference_graphs/original_nncf_graph/synthetic/float64_model.dot
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
strict digraph { | ||
"0 Reciprocal" [id=0, type=Reciprocal]; | ||
"1 Cast" [id=1, type=Cast]; | ||
"2 Mul" [id=2, type=Mul]; | ||
"2 Conv1" [id=2, type=Conv]; | ||
"3 nncf_model_input_0" [id=3, type=nncf_model_input]; | ||
"4 nncf_model_output_0" [id=4, type=nncf_model_output]; | ||
"0 Reciprocal" -> "1 Cast" [label="[1, 3, 10, 10]", style=dashed]; | ||
"1 Cast" -> "2 Mul" [label="[1, 3, 10, 10]", style=solid]; | ||
"2 Mul" -> "4 nncf_model_output_0" [label="[1, 3, 10, 10]", style=solid]; | ||
"1 Cast" -> "2 Conv1" [label="[1, 3, 10, 10]", style=solid]; | ||
"2 Conv1" -> "4 nncf_model_output_0" [label="[1, 3, 10, 10]", style=solid]; | ||
"3 nncf_model_input_0" -> "0 Reciprocal" [label="[1, 3, 10, 10]", style=dashed]; | ||
} |
Oops, something went wrong.