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.
1 parent 2ad402e commit 75568a7Copy full SHA for 75568a7
tf2onnx/graph.py
@@ -691,6 +691,8 @@ def remove_node(self, node_name):
691
self.inputs.remove(node)
692
693
for op_output in node.output:
694
+ if op_output == "":
695
+ continue
696
del self._output_to_node_name[op_output]
697
698
if op_output in self._output_shapes:
@@ -699,6 +701,8 @@ def remove_node(self, node_name):
699
701
del self._dtypes[op_output]
700
702
703
for op_input in node.input:
704
+ if op_input == "":
705
706
utils.make_sure(
707
op_input in self._output_to_consumers,
708
"Input %r of node %r not found.", op_input, node_name)
0 commit comments