提交 51715a8d authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merged

...@@ -114,7 +114,7 @@ def test_exp(): ...@@ -114,7 +114,7 @@ def test_exp():
def test_copy(): def test_copy():
print >>sys.stdout, 'starting test_copy' print >>sys.stdout, 'starting test_copy'
shape = (5,) shape = (500,499)
a = theano._asarray(numpy.random.rand(*shape), dtype='float32') a = theano._asarray(numpy.random.rand(*shape), dtype='float32')
print >>sys.stdout, '.. creating device object' print >>sys.stdout, '.. creating device object'
...@@ -131,7 +131,7 @@ def test_copy(): ...@@ -131,7 +131,7 @@ def test_copy():
assert numpy.allclose(a, numpy.asarray(d)) assert numpy.allclose(a, numpy.asarray(d))
b+=b b+=b
assert numpy.allclose(a+a, numpy.asarray(b)) assert numpy.allclose(a+a, numpy.asarray(b))
assert numpy.allclose(a+a, numpy.asarray(c)) assert numpy.allclose(a, numpy.asarray(c))
assert numpy.allclose(a, numpy.asarray(d)) assert numpy.allclose(a, numpy.asarray(d))
def test_nvcc_bug(): def test_nvcc_bug():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论