Skip to content

Commit 1daa780

Browse files
committed
remove one call to is_graph_input
1 parent e1eccab commit 1daa780

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tf2onnx/graph.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,10 @@ def reset_nodes(self, ops):
674674
for op in ops:
675675
for op_output in op.output:
676676
self._output_to_node_name[op_output] = op.name
677-
if op.is_graph_input(): # op.type == 'Placeholder':
678-
inps = [op.name]
679-
elif op.type == 'Const':
677+
# if op.is_graph_input(): # op.type == 'Placeholder':
678+
# inps = [op.name]
679+
# el
680+
if op.type == 'Const':
680681
inps = [op.name]
681682
else:
682683
inps = op.input

0 commit comments

Comments
 (0)