Skip to content

Commit 5edf63d

Browse files
committed
Bugfix for concatenating node instead of str.
Signed-off-by: Francesco Di Natale <[email protected]>
1 parent c67bcfb commit 5edf63d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2onnx/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,10 @@ def reset_nodes(self, ops):
751751

752752
for n in self.inputs:
753753
if n not in ops:
754-
raise ValueError("graph input " + n + " not exist")
754+
raise ValueError("graph input '" + n.name + "' not exist")
755755
for o in self.outputs:
756756
if o not in self._output_to_node_name:
757-
raise ValueError("graph output " + o + " not exist")
757+
raise ValueError("graph output '" + o.name + "' not exist")
758758

759759
self._dtypes = remained_dtypes
760760
self._output_shapes = remained_shapes

0 commit comments

Comments
 (0)