Skip to content

Commit 102d8f8

Browse files
committed
Fiw wrong split.
1 parent e45a5a6 commit 102d8f8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tf2onnx/graph.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,18 +1262,6 @@ def replace_input(self, node, old_input, new_input, i=None):
12621262
def replace_inputs(self, node, new_inputs):
12631263
"""Replace node inputs."""
12641264
assert isinstance(node, Node) and isinstance(new_inputs, list)
1265-
1266-
for old_input in node.input:
1267-
to_ops = self._input_to_node_name.get(old_input, None)
1268-
if to_ops is not None and old_input in to_ops:
1269-
# To avoid issues when a node
1270-
# takes twice the same entry.
1271-
to_ops.remove(old_input)
1272-
1273-
for input_name in new_inputs:
1274-
assert isinstance(input_name, six.text_type)
1275-
self._register_input_name(input_name, node)
1276-
12771265
node.input = new_inputs
12781266
return True
12791267

0 commit comments

Comments
 (0)