提交 3d34a2d0 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix test when no gpu test executed.

上级 b72fc8c8
...@@ -375,7 +375,7 @@ def test_uniform(): ...@@ -375,7 +375,7 @@ def test_uniform():
#print 'random?[-1,-10:]\n', gpu_out[-1,-10:] #print 'random?[-1,-10:]\n', gpu_out[-1,-10:]
basictest(f, steps, sample_size, prefix='mrg gpu', inputs=input) basictest(f, steps, sample_size, prefix='mrg gpu', inputs=input)
numpy.testing.assert_array_almost_equal(cpu_out, gpu_out, decimal=6) numpy.testing.assert_array_almost_equal(cpu_out, gpu_out, decimal=6)
print '' print ''
print 'ON CPU w Numpy with size=(%s):'%str(size) print 'ON CPU w Numpy with size=(%s):'%str(size)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论