提交 002ba88f authored 作者: James Bergstra's avatar James Bergstra

tensor.elemwise - corrected a raise expression to give original traceback

上级 0d6b1a1c
......@@ -618,7 +618,7 @@ class Elemwise(Op):
errormsg = '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 e
raise
if ufunc.nout == 1: variables = [variables]
for variable, storage in zip(variables, output_storage):
if storage[0].shape:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论