提交 5baa3a81 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #1844 from Hengjean/optExceptionBugFix

fixed a bug in tensor/opt.py exception
......@@ -1024,9 +1024,9 @@ class ShapeFeature(object):
# elements of the tuple can be either strings, or ints
if len(o_shapes) != len(node.outputs):
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 ' +
' != len(node.outputs) = %d' % (str(node.op),
' != len(node.outputs) = %d') % (str(node.op),
len(o_shapes),
len(node.outputs)))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论