-
Notifications
You must be signed in to change notification settings - Fork 246
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
Fix remove_shapeof_subgraphs #2536
Fix remove_shapeof_subgraphs #2536
Conversation
@@ -64,26 +64,26 @@ def remove_shapeof_subgraphs( | |||
if node.metatype in shapeof_metatypes: | |||
shape_of_nodes.append(node) | |||
continue | |||
if node in infer_nodes: | |||
if node.node_name in infer_nodes: |
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.
@KodiaqQ These changes are necessary because a node from quantized_model_graph contains NumPy arrays in its attributes. Therefore, it is not possible to perform the NNCFNode.__eq__()
method due to this comparison
self.attributes == other.attributes
I have not changed NNCFNode.__eq__()
method because these attributes are custom (they were added by algorithm).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2536 +/- ##
===========================================
- Coverage 90.92% 84.63% -6.29%
===========================================
Files 498 498
Lines 45550 45553 +3
===========================================
- Hits 41415 38555 -2860
- Misses 4135 6998 +2863
... and 55 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Changes
Reason for changes
The
remove_shapeof_subgraphs()
function removes some operations whose weights are quantized.Related tickets
Ref: 131843
Tests
Current scope