-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Common] port_id
and parallel_edges_ids
are added to the graph for analysis
#2206
base: develop
Are you sure you want to change the base?
[Common] port_id
and parallel_edges_ids
are added to the graph for analysis
#2206
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2206 +/- ##
===========================================
- Coverage 36.63% 36.40% -0.23%
===========================================
Files 486 486
Lines 43377 43460 +83
===========================================
- Hits 15889 15821 -68
- Misses 27488 27639 +151
|
…or_structural_analysis
…or_structural_analysis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now all of the reference structural graphs except for torch use the format with port IDs and shapes, except for torch. Either regenerate torch reference graphs to the new format, or keep the old format in the other frameworks and only extend the reference graphs with the "parallel_input_port_ids".
nncf/common/graph/graph.py
Outdated
@@ -607,12 +607,12 @@ def get_graph_for_structure_analysis(self, extended: bool = False) -> nx.DiGraph | |||
else: | |||
attrs_edge["style"] = "solid" | |||
label["shape"] = edge[NNCFGraph.ACTIVATION_SHAPE_EDGE_ATTR] | |||
label[ | |||
"ports" | |||
] = f"{edge[NNCFGraph.OUTPUT_PORT_ID_EDGE_ATTR]}\u2192{edge[NNCFGraph.INPUT_PORT_ID_EDGE_ATTR]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that you tried to make the representation prettier, but even in 2023 there's no guarantee that every tool can handle Unicode well enough. Use ->
to represent an arrow, that would be safer.
2fc08c9
to
11d3d66
Compare
Changes
port_id
andparallel_edges_ids
are added to the graph for analysisReason for changes
To test
parallel_edges_ids
andport_id
in graph tests as well as the structural information.Related tickets
Tests