提交 daef1d0c authored 作者: Razvan Pascanu's avatar Razvan Pascanu

better error messages

上级 c8913b3e
...@@ -121,7 +121,9 @@ class test_RopLop(unittest.TestCase): ...@@ -121,7 +121,9 @@ 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.mx:break_op(self.mx)})) replace={self.mx:break_op(self.mx)}))
...@@ -136,7 +138,8 @@ class test_RopLop(unittest.TestCase): ...@@ -136,7 +138,8 @@ 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 check_rop_lop(self, y, out_shape): def check_rop_lop(self, y, out_shape):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论