Skip to content

Commit

Permalink
Added Identity node to the removal list
Browse files Browse the repository at this point in the history
  • Loading branch information
jvreca authored and maltanar committed Sep 12, 2024
1 parent 93acc3a commit 8bad7e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qonnx/transformation/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,9 @@ def apply(self, model):
remove_node_and_rewire(model, n)
graph_modified = True
break
elif n.op_type == "Identity":
remove_node_and_rewire(model, n)
graph_modified = True
break
model = model.transform(InferShapes())
return (model, graph_modified)

0 comments on commit 8bad7e7

Please sign in to comment.