提交 c05036bf authored 作者: Frederic Bastien's avatar Frederic Bastien

test a little more stuff.

上级 ad1d5370
...@@ -2703,10 +2703,12 @@ def test_unalign(): ...@@ -2703,10 +2703,12 @@ def test_unalign():
f.maker.env.toposort() f.maker.env.toposort()
try: try:
out_theano = f(a,b) out_theano = f(a,b)
assert not a.flags.aligned
assert not b.flags.aligned
assert numpy.allclose(out_numpy,out_theano)
raise Exception("Expected an error from Theano!")
except NotImplementedError: except NotImplementedError:
pass pass
else:
raise Exception("Expected an error from Theano!")
if __name__ == '__main__': if __name__ == '__main__':
if 1: if 1:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论