We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13902dc + 3f5e61a commit de21e8aCopy full SHA for de21e8a
tf2onnx/tfonnx.py
@@ -34,7 +34,7 @@
34
# pylint: disable=unused-variable
35
36
def fold_constants_using_tf(g, outputs_to_values, outputs_to_dtypes):
37
- ops = g.get_nodes()
+ ops = list(g.get_nodes())
38
# pylint: disable=too-many-nested-blocks
39
keep_looking = True
40
while keep_looking:
@@ -83,6 +83,7 @@ def rewrite_constant_fold(g, ops):
83
"Sqrt": np.sqrt,
84
"Sub": np.subtract,
85
}
86
+ ops = list(ops)
87
88
89
0 commit comments