Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
230664d8
提交
230664d8
authored
4月 26, 2016
作者:
slefrancois
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated doc to move gpuarray out of sandbox
上级
4235e6cd
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
dnn.txt
doc/library/sandbox/gpuarray/dnn.txt
+1
-1
index.txt
doc/library/sandbox/gpuarray/index.txt
+1
-1
type.txt
doc/library/sandbox/gpuarray/type.txt
+1
-1
index.txt
doc/library/sandbox/index.txt
+0
-1
using_gpu.txt
doc/tutorial/using_gpu.txt
+7
-6
没有找到文件。
doc/library/sandbox/gpuarray/dnn.txt
浏览文件 @
230664d8
.. _libdoc_gpuarray_dnn:
===========================================
:mod:`
theano.sandbox.
gpuarray.dnn` -- cuDNN
:mod:`gpuarray.dnn` -- cuDNN
===========================================
.. moduleauthor:: LISA
...
...
doc/library/sandbox/gpuarray/index.txt
浏览文件 @
230664d8
...
...
@@ -2,7 +2,7 @@
.. _libdoc_gpuarray:
=======================================================
:mod:`
theano.sandbox.
gpuarray` -- The (new) GPU backend
:mod:`gpuarray` -- The (new) GPU backend
=======================================================
.. module:: theano.sandbox.gpuarray
...
...
doc/library/sandbox/gpuarray/type.txt
浏览文件 @
230664d8
.. _libdoc_gpuarray_type:
===================================================
:mod:`
theano.sandbox.
gpuarray.type` -- Type classes
:mod:`gpuarray.type` -- Type classes
===================================================
.. automodule:: theano.sandbox.gpuarray.type
...
...
doc/library/sandbox/index.txt
浏览文件 @
230664d8
...
...
@@ -14,7 +14,6 @@
:maxdepth: 1
cuda/index
gpuarray/index
linalg
neighbours
rng_mrg
doc/tutorial/using_gpu.txt
浏览文件 @
230664d8
...
...
@@ -393,7 +393,7 @@ into a file and run it.
.. testcode::
from theano import function, config, shared, tensor
, sandbox
from theano import function, config, shared, tensor
import numpy
import time
...
...
@@ -461,7 +461,7 @@ the GPU object directly. The following code is modifed to do just that.
.. testcode::
from theano import function, config, shared, tensor,
sandbox
from theano import function, config, shared, tensor,
gpuarray
import numpy
import time
...
...
@@ -470,7 +470,7 @@ the GPU object directly. The following code is modifed to do just that.
rng = numpy.random.RandomState(22)
x = shared(numpy.asarray(rng.rand(vlen), config.floatX))
f = function([], sandbox.gpuarray.basic_ops.
gpu_from_host
(tensor.exp(x)))
f = function([], sandbox.gpuarray.basic_ops.
GpuFromHost(None)
(tensor.exp(x)))
print(f.maker.fgraph.toposort())
t0 = time.time()
for i in range(iters):
...
...
@@ -485,9 +485,10 @@ the GPU object directly. The following code is modifed to do just that.
else:
print('Used the gpu')
Here the :func:`theano.sandbox.gpuarray.basic.gpu_from_host` call
means "copy input to the GPU". However during the optimization phase,
since the result will already be on th gpu, it will be removed. It is
Here the :func:`theano.sandbox.gpuarray.basic_ops.GpuFromHost(None)` call
means "copy input to the GPU", with ``None`` the default GPU context when not
explicitly given. However during the optimization phase,
since the result will already be on the gpu, it will be removed. It is
used here to tell theano that we want the result on the GPU.
The output is
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论