-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ONNX] Fix adding output nodes in NNCFGraph (#2538)
### Changes Do not add edges for the output node if it has no parents. E.g. output is put on the initializer. ### Reason for changes 125248 ### Related tickets 125248 ### Tests Checked on reproducer in the ticket
- Loading branch information
Showing
3 changed files
with
45 additions
and
24 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
7 changes: 7 additions & 0 deletions
7
...onnx/data/reference_graphs/original_nncf_graph/synthetic/output_with_no_parents_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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
strict digraph { | ||
"0 Conv1" [id=0, type=Conv]; | ||
"1 nncf_model_input_0" [id=1, type=nncf_model_input]; | ||
"2 nncf_model_output_0" [id=2, type=nncf_model_output]; | ||
"0 Conv1" -> "2 nncf_model_output_0" [label="[]", style=solid]; | ||
"1 nncf_model_input_0" -> "0 Conv1" [label="[1, 3, 10, 10]", style=solid]; | ||
} |
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