提交 5680f4e1 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

More informative error message.

* * * More informative error message
上级 4a6132af
...@@ -152,7 +152,7 @@ class test_RopLop(unittest.TestCase): ...@@ -152,7 +152,7 @@ class test_RopLop(unittest.TestCase):
v1 = rop_f(vx,vv) v1 = rop_f(vx,vv)
v2 = scan_f(vx,vv) v2 = scan_f(vx,vv)
assert numpy.allclose(v1,v2) assert numpy.allclose(v1,v2), ('ROP mismatch: %s %s' % (v1, v2))
self.check_nondiff_rop( theano.clone(y, self.check_nondiff_rop( theano.clone(y,
replace={self.x:break_op(self.x)})) replace={self.x:break_op(self.x)}))
...@@ -172,7 +172,7 @@ class test_RopLop(unittest.TestCase): ...@@ -172,7 +172,7 @@ class test_RopLop(unittest.TestCase):
v1 = lop_f(vx,vv) v1 = lop_f(vx,vv)
v2 = scan_f(vx,vv) v2 = scan_f(vx,vv)
assert numpy.allclose(v1,v2) assert numpy.allclose(v1,v2), ('LOP mismatch: %s %s' % (v1, v2))
def test_shape(self): def test_shape(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论