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