提交 3deb9090 authored 作者: Hengjean's avatar Hengjean

fixed a bug in tensor/opt.py exception

上级 5d221f46
...@@ -1024,9 +1024,9 @@ class ShapeFeature(object): ...@@ -1024,9 +1024,9 @@ class ShapeFeature(object):
# elements of the tuple can be either strings, or ints # elements of the tuple can be either strings, or ints
if len(o_shapes) != len(node.outputs): if len(o_shapes) != len(node.outputs):
raise Exception( raise Exception(
'The infer_shape method for the Op "%s" returned a list ' + ('The infer_shape method for the Op "%s" returned a list ' +
'with the wrong number of element: len(o_shapes) = %d ' + 'with the wrong number of element: len(o_shapes) = %d ' +
' != len(node.outputs) = %d' % (str(node.op), ' != len(node.outputs) = %d') % (str(node.op),
len(o_shapes), len(o_shapes),
len(node.outputs))) len(node.outputs)))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论