提交 b98e5b25 authored 作者: Frederic's avatar Frederic

Allow import without the gpu back-end.

needed for docgen.
上级 9625521b
...@@ -4,7 +4,10 @@ import numpy as np ...@@ -4,7 +4,10 @@ import numpy as np
import theano import theano
import theano.tensor as T import theano.tensor as T
from theano.sandbox.cuda import (GpuOp, basic_ops, CudaNdarrayType, from theano.sandbox.cuda import cuda_available, GpuOp
if cuda_available:
from theano.sandbox.cuda import (basic_ops, CudaNdarrayType,
CudaNdarray) CudaNdarray)
import theano.misc.pycuda_init import theano.misc.pycuda_init
from theano.misc.pycuda_init import pycuda_available from theano.misc.pycuda_init import pycuda_available
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论