Skip to content

Commit

Permalink
Compare node.attributes in is_same_node_merge (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiafatom authored Apr 9, 2021
1 parent 91ef4b3 commit 43bc9da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onnxconverter_common/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,9 @@ def is_same_node_merge(node_0, node_1, node):
if node_0.origin.attribute != node_1.origin.attribute:
return False

if node_0.attributes != node_1.attributes:
return False

if len(node_0.origin.input) != len(node_1.origin.input):
return False

Expand Down

0 comments on commit 43bc9da

Please sign in to comment.