Skip to content

Commit aa83304

Browse files
FrankD412fatcat-z
andauthored
Bugfix for concatenating node instead of str. (#1933)
Signed-off-by: Francesco Di Natale <frank.dinatale1988@gmail.com> Co-authored-by: Jay Zhang <36183870+fatcat-z@users.noreply.github.com>
1 parent d4d9f06 commit aa83304

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)