提交 0e2f02dd authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Make gpuarray submodule import without raising even if pygpu is not avaiable.

上级 6c5dbfc5
...@@ -7,11 +7,11 @@ from theano.compile import SharedVariable ...@@ -7,11 +7,11 @@ from theano.compile import SharedVariable
try: try:
# Let this be importable for documentation purposes # Let this be importable for documentation purposes
import pygpu.gpuarray import pygpu.gpuarray
from basic_ops import host_from_gpu, gpu_from_host
except ImportError: except ImportError:
pass pass
from type import GpuArrayType from type import GpuArrayType
from basic_ops import host_from_gpu, gpu_from_host
class _operators(tensor.basic._tensor_py_operators): class _operators(tensor.basic._tensor_py_operators):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论