We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3690c8 + ddc1018 commit 9b22db4Copy full SHA for 9b22db4
src/qonnx/transformation/fold_constants.py
@@ -111,6 +111,11 @@ def apply(self, model):
111
# remove old node
112
nodes_to_remove.append(n)
113
graph_modified = True
114
+ # Exit the loop here, after changing a single node. The
115
+ # ModelWrapper ensures to repeat this transformatin as long as
116
+ # there are suitable nodes available.
117
+ # See https://github.com/fastmachinelearning/qonnx/issues/104
118
+ break
119
for node in nodes_to_remove:
120
model.graph.node.remove(node)
121
if graph_modified:
0 commit comments