提交 aca02853 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merged -- no conflict

...@@ -49,6 +49,8 @@ from gof import \ ...@@ -49,6 +49,8 @@ from gof import \
Type, Generic, generic, \ Type, Generic, generic, \
object2, utils object2, utils
import compile
from compile import \ from compile import \
SymbolicInput, In, \ SymbolicInput, In, \
SymbolicOutput, Out, \ SymbolicOutput, Out, \
......
...@@ -18,7 +18,7 @@ except ImportError: ...@@ -18,7 +18,7 @@ except ImportError:
def _is_sparse(a): def _is_sparse(a):
return False return False
import theano.sandbox.cuda as cuda from theano.sandbox import cuda
if cuda.cuda_available: if cuda.cuda_available:
def _is_cuda(a): def _is_cuda(a):
return isinstance(a, cuda.CudaNdarray) return isinstance(a, cuda.CudaNdarray)
......
...@@ -254,7 +254,7 @@ class T_Scan(unittest.TestCase): ...@@ -254,7 +254,7 @@ class T_Scan(unittest.TestCase):
# This first version test the first case in the optimizer to the gpu. # This first version test the first case in the optimizer to the gpu.
def test_one_sequence_one_output_weights_gpu1(self): def test_one_sequence_one_output_weights_gpu1(self):
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
import theano.sandbox.cuda as cuda from theano.sandbox import cuda
if cuda.cuda_available == False: if cuda.cuda_available == False:
raise SkipTest('Optional package cuda disabled') raise SkipTest('Optional package cuda disabled')
...@@ -331,7 +331,7 @@ class T_Scan(unittest.TestCase): ...@@ -331,7 +331,7 @@ class T_Scan(unittest.TestCase):
# This second version test the second case in the optimizer to the gpu. # This second version test the second case in the optimizer to the gpu.
def test_one_sequence_one_output_weights_gpu2(self): def test_one_sequence_one_output_weights_gpu2(self):
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
import theano.sandbox.cuda as cuda from theano.sandbox import cuda
if cuda.cuda_available == False: if cuda.cuda_available == False:
raise SkipTest('Optional package cuda disabled') raise SkipTest('Optional package cuda disabled')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论