提交 07f1ae00 authored 作者: Frederic's avatar Frederic

Make test error more informative.

上级 545b383d
......@@ -697,7 +697,9 @@ class test_IsInf_IsNan(unittest.TestCase):
(x.ndim == 1 and input is not self.vector)):
# We only test with the appropriate input type.
continue
assert (theano_isfunc(x) == numpy_isfunc(x)).all()
t_out = theano_isfunc(x)
n_out = numpy_isfunc(x)
assert (t_out == n_out).all(), (t_out, n_out)
def test_isinf(self):
return self.run_isfunc('isinf')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论