提交 f7c304cd authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Import any, all from python25 where needed.

上级 1ef98f47
......@@ -7,9 +7,9 @@ __copyright__ = "(c) 2011, University of Montreal"
__license__ = "3-clause BSD License"
__contact__ = "theano-dev@googlegroups.com"
import sys
import numpy
import theano.gof
from theano.gof.python25 import all
from theano.sandbox.cuda import CudaNdarrayType, GpuOp
from theano.tensor import (get_vector_length, cast, opt)
from theano.compile import optdb
......
......@@ -13,6 +13,7 @@ import theano.sandbox.cuda as cuda_ndarray
if cuda_ndarray.cuda_available == False:
raise SkipTest('Optional package cuda disabled')
from theano.gof.python25 import any
import theano.sandbox.cuda as tcn
import theano.sandbox.cuda as cuda
import theano.sandbox.cuda.basic_ops as B
......
......@@ -16,6 +16,7 @@ import theano.sandbox.cuda as tcn
from theano.tensor.signal.downsample import (DownsampleFactorMax,
DownsampleFactorMaxGrad)
from theano.gof.python25 import any
import theano.compile.mode
from theano.tensor.tests.test_blas import BaseGemv, TestBlasStrides, TestGer
......
......@@ -5,6 +5,7 @@ from nose.plugins.skip import SkipTest
import numpy
import theano
from theano.gof.python25 import all
import theano.sandbox.cuda as cuda_ndarray
from theano.tensor.basic import _allclose
from theano.tests import unittest_tools as utt
......
......@@ -7,6 +7,7 @@ import theano.sandbox.cuda as cuda_ndarray
if cuda_ndarray.cuda_available == False:
raise SkipTest('Optional package cuda disabled')
from theano.gof.python25 import any
import theano.sandbox.cuda as cuda
import theano.sandbox.cuda.basic_ops as B
......
......@@ -2,6 +2,7 @@ from nose.plugins.skip import SkipTest
import numpy
import theano
from theano.gof.python25 import any
import theano.tensor as T
import theano.tests.unittest_tools as utt
......
......@@ -2,6 +2,7 @@ import theano
from theano import Op, Apply
import theano.tensor as T
from theano.gof import local_optimizer
from theano.gof.python25 import any
from theano.sandbox.cuda import cuda_available, GpuOp
if cuda_available:
......
......@@ -6,6 +6,7 @@ import theano
from theano import config, function, tensor
import multinomial
from theano.compile.mode import get_default_mode, predefined_linkers
from theano.gof.python25 import any
import theano.sandbox.cuda as cuda
def get_mode(gpu):
......
......@@ -7,6 +7,7 @@ from neighbours import (images2neibs, neibs2images,
# Skip test if cuda_ndarray is not available.
from nose.plugins.skip import SkipTest
import theano.sandbox.cuda as cuda
from theano.gof.python25 import any
from theano.tests import unittest_tools
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论