Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
813c0076
提交
813c0076
authored
10月 20, 2014
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
small doc/comment changes.
上级
10a620ef
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
16 行删除
+13
-16
conv.txt
doc/library/tensor/nnet/conv.txt
+8
-8
opt.py
theano/sandbox/cuda/opt.py
+4
-7
test_conv_cuda_ndarray.py
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
+1
-1
没有找到文件。
doc/library/tensor/nnet/conv.txt
浏览文件 @
813c0076
...
@@ -28,11 +28,11 @@
...
@@ -28,11 +28,11 @@
changed. Here is the algo:
changed. Here is the algo:
- If we can use `cuDNN <https://developer.nvidia.com/cuDNN>`_, use it.
- If we can use `cuDNN <https://developer.nvidia.com/cuDNN>`_, use it.
- If not, use gemm version (slower then cuDNN, use more memory).
- If not, use gemm version (slower then cuDNN, use
s
more memory).
If the user
don't want the extra memory of the gemm version, they
If the user
s don't want the extra memory usage of the gemm
can enable the legacy code that is even slower, but don't use
version, they can enable the legacy code that is even slower, but
extra memory. For this, use the Theano flag
does not use
extra memory. For this, use the Theano flag
``optimizer_excluding=conv_gemm``.
``optimizer_excluding=conv_gemm``.
There is no reason to use the legacy code or the gemm version if
There is no reason to use the legacy code or the gemm version if
...
@@ -41,11 +41,11 @@
...
@@ -41,11 +41,11 @@
2 other options:
2 other options:
- There is also the fft version that is the fastest in some cases,
- There is also the fft version that is the fastest in some cases,
but use
even more memory. It don'
t support striding to remove
but use
s even more memory. It does no
t support striding to remove
computation and ha
ve
some shapes restriction.
computation and ha
s
some shapes restriction.
- There is also the cuda_convnet convolution in Pylearn2. It use a
- There is also the cuda_convnet convolution in Pylearn2. It use
s
a
different memory layout, ha
ve shapes restriction, but don'
t use
different memory layout, ha
s shapes restrictions, but does no
t use
extra memory and is faster then the legacy convolution.
extra memory and is faster then the legacy convolution.
...
...
theano/sandbox/cuda/opt.py
浏览文件 @
813c0076
...
@@ -1109,14 +1109,11 @@ def local_gpu_softmax_with_bias(node):
...
@@ -1109,14 +1109,11 @@ def local_gpu_softmax_with_bias(node):
from
theano.tensor.nnet
import
conv
from
theano.tensor.nnet
import
conv
# Need to be registered before local_gpu_conv_legacy. Otherwise, it
# Need
s
to be registered before local_gpu_conv_legacy. Otherwise, it
# will have priority over this optimization. We want, if cudnn is
# will have priority over this optimization. We want, if cudnn is
# available and the GPU support it, use it. Otherwise, the gemm
# available and the GPU supports it, to use it. Otherwise, the gemm
# version should be used. If the user want the legacy convolution,
# version should be used. If the users want the legacy convolution,
# they should use the Theano flag:
# they should use the Theano flag to disable the dnn and/or gemm version.
# optimizer_excluding=local_conv_gemm.
# If cudnn is available, this flag should be added:
# optimizer_excluding=local_gpu_conv
@register_opt
(
"dnn"
)
@register_opt
(
"dnn"
)
@local_optimizer
([
gpu_from_host
,
conv
.
ConvOp
])
@local_optimizer
([
gpu_from_host
,
conv
.
ConvOp
])
def
local_gpu_conv
(
node
):
def
local_gpu_conv
(
node
):
...
...
theano/sandbox/cuda/tests/test_conv_cuda_ndarray.py
浏览文件 @
813c0076
...
@@ -588,7 +588,7 @@ def test_dnn_valid():
...
@@ -588,7 +588,7 @@ def test_dnn_valid():
def
test_default_conv
():
def
test_default_conv
():
"""Just test that we introduce the right GPU convolution
"""Just test that we introduce the right GPU convolution
vers
oi
n.
vers
io
n.
"""
"""
img
=
theano
.
tensor
.
ftensor4
()
img
=
theano
.
tensor
.
ftensor4
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论