提交 52ee731a authored 作者: Frederic Bastien's avatar Frederic Bastien

changed theano_cuda_ndarray to theano.sandbox.cuda following merge.

上级 95fa97cc
......@@ -3,10 +3,10 @@ import theano
from theano import tensor, scalar, compile
from theano.gof import local_optimizer, EquilibriumDB, SequenceDB
from theano_cuda_ndarray.basic_ops import *
from theano_cuda_ndarray.blas import gpu_dot22, gpu_gemm, GpuConv
from theano_cuda_ndarray.blas import GpuDownsampleFactorMax, GpuDownsampleFactorMaxGrad
from theano_cuda_ndarray.nnet import (
from theano.sandbox.cuda.basic_ops import *
from theano.sandbox.cuda.blas import gpu_dot22, gpu_gemm, GpuConv
from theano.sandbox.cuda.blas import GpuDownsampleFactorMax, GpuDownsampleFactorMaxGrad
from theano.sandbox.cuda.nnet import (
GpuCrossentropySoftmaxArgmax1HotWithBias,
GpuCrossentropySoftmax1HotWithBiasDx,
GpuSoftmax)
......
......@@ -5,7 +5,7 @@ from theano import tensor
import numpy
import theano_cuda_ndarray as tcn
import theano.sandbox.cuda as tcn
import cuda_ndarray
def test_elemwise0():
......
......@@ -260,8 +260,8 @@ def test_bench_elemwise(n_iter=1000, **kwargs):
setattr(conf, k, kwargs[k])
if conf.use_gpu:
import theano_cuda_ndarray
theano_cuda_ndarray.use()
import theano.sandbox.cuda
theano.sandbox.cuda.use()
debug=False
if theano.compile.default_mode=="DEBUG_MODE": debug=True
......
......@@ -5,7 +5,7 @@ from theano import tensor
import numpy
import theano_cuda_ndarray as tcn
import theano.sandbox.cuda as tcn
from theano.sandbox.downsample import DownsampleFactorMax
......
......@@ -11,10 +11,10 @@ import theano.sandbox.downsample
import numpy
import theano_cuda_ndarray as tcn
import theano.sandbox.cuda as tcn
import logging
logging.getLogger('test_cuda_ndarray.tests.test_nnet').setLevel(logging.INFO)
logging.getLogger('theano.sandbox.cuda.tests.test_nnet').setLevel(logging.INFO)
def get_mode():
......
......@@ -5,8 +5,8 @@ from theano import tensor
import numpy
import theano_cuda_ndarray as tcn
from theano_cuda_ndarray.basic_ops import host_from_gpu, gpu_from_host
import theano.sandbox.cuda as tcn
from theano.sandbox.cuda.basic_ops import host_from_gpu, gpu_from_host
def compare_fns(fns, input, reps=10):
times = {}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论