提交 5df185d5 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Minor fix in test code that is not used curently anyway

上级 7c39dbfb
...@@ -273,7 +273,7 @@ if 0: ...@@ -273,7 +273,7 @@ if 0:
# Skip test if cuda_ndarray is not available. # Skip test if cuda_ndarray is not available.
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
import theano.sandbox.cuda as cuda_ndarray import theano.sandbox.cuda as cuda_ndarray
if cuda_ndarray.cuda_enabled == False: if not cuda_ndarray.cuda_available:
raise SkipTest('Optional package cuda disabled') raise SkipTest('Optional package cuda disabled')
import theano.sandbox.cuda import theano.sandbox.cuda
theano.sandbox.cuda.use() theano.sandbox.cuda.use()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论