提交 8a01deb0 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

changed elemwise perform method to include names of outputs in error message

上级 33e7dc08
......@@ -662,7 +662,7 @@ class Elemwise(Op):
try:
variables = ufunc(*ufunc_args)
except Exception, e:
errormsg = 'Failed calling ufunc for op', self.scalar_op,\
errormsg = 'While computing '+str(node.outputs)+': Failed calling ufunc for op', self.scalar_op,\
'for params of shape', [arg.shape for arg in ufunc_args]
e.args = e.args + errormsg
raise
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论