提交 56f27f0b authored 作者: Frederic's avatar Frederic

Added assert in tests.

上级 23e9452b
......@@ -380,6 +380,7 @@ def test_reshape():
#print n_bb
assert numpy.all(aa == n_bb)
assert aa.shape == n_bb.shape
# Test the not contiguous case
shape_1_2x = (shape_1[0] * 2,) + shape_1[1:]
......@@ -396,6 +397,7 @@ def test_reshape():
#print n_bb
assert numpy.all(aa == n_bb)
assert aa.shape == n_bb.shape
def bad_subtest(shape_1, shape_2, rng):
a = theano._asarray(rng.randn(*shape_1), dtype='float32')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论