提交 f705a5d3 authored 作者: --global's avatar --global

Add interface of sandbox.gpuarray more similar to sandbox.cuda

上级 cdd84ba4
......@@ -54,6 +54,14 @@ if pygpu:
optdb.add_tags('gpuarray_opt', 'fast_run', 'fast_compile', 'inplace')
elif config.gpuarray.init_device != '':
init_dev(config.gpuarray.init_device)
from .basic_ops import (GpuAlloc, GpuContiguous, GpuEye, GpuFromHost,
GpuJoin, GpuReshape, GpuSplit, HostFromGpu)
from .basic_ops import host_from_gpu, gpu_from_host
from .elemwise import GpuElemwise
from .subtensor import (GpuSubtensor, GpuIncSubtensor,
GpuAdvancedIncSubtensor1)
except Exception:
error("Could not initialize pygpu, support disabled", exc_info=True)
else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论