Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
21c4af55
提交
21c4af55
authored
10月 07, 2015
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3504 from Theano/cudnn_padding_doc
Fix dnn_conv and dnn_pool docs
上级
bd85f115
127dab8a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
22 行增加
和
11 行删除
+22
-11
dnn.py
theano/sandbox/cuda/dnn.py
+22
-11
没有找到文件。
theano/sandbox/cuda/dnn.py
浏览文件 @
21c4af55
...
@@ -1105,8 +1105,11 @@ def dnn_conv(img, kerns, border_mode='valid', subsample=(1, 1),
...
@@ -1105,8 +1105,11 @@ def dnn_conv(img, kerns, border_mode='valid', subsample=(1, 1),
kerns
kerns
Convolution filters.
Convolution filters.
border_mode
border_mode
One of 'valid', 'full'; additionally, the padding size could be directly
One of 'valid', 'full'; additionally, the padding size can be
specified by an integer or a pair of integers.
directly specified by an integer or a pair of integers (as a tuple),
specifying the amount of zero padding added to _both_ the top and
bottom (first entry) and left and right (second entry) sides of
the image.
subsample
subsample
Perform subsampling of the output (default: (1, 1)).
Perform subsampling of the output (default: (1, 1)).
conv_mode
conv_mode
...
@@ -1201,8 +1204,11 @@ def dnn_conv3d(img, kerns, border_mode='valid', subsample=(1, 1, 1),
...
@@ -1201,8 +1204,11 @@ def dnn_conv3d(img, kerns, border_mode='valid', subsample=(1, 1, 1),
:param img: images to do the convolution over
:param img: images to do the convolution over
:param kerns: convolution filters
:param kerns: convolution filters
:param border_mode: one of 'valid', 'full'; additionally, the padding size
:param border_mode: One of 'valid', 'full'; additionally, the padding
could be directly specified by an integer or a pair of integers
size can be directly specified by an integer or a pair of integers
(as a tuple), specifying the amount of zero padding added to _both_
the top and bottom (first entry) and left and right (second entry)
sides of the image.
:param subsample: perform subsampling of the output (default: (1, 1, 1))
:param subsample: perform subsampling of the output (default: (1, 1, 1))
:param conv_mode: perform convolution (kernels flipped) or
:param conv_mode: perform convolution (kernels flipped) or
cross-correlation. One of 'conv', 'cross'. (default: 'conv')
cross-correlation. One of 'conv', 'cross'. (default: 'conv')
...
@@ -1283,9 +1289,11 @@ class GpuDnnPoolDesc(GpuOp):
...
@@ -1283,9 +1289,11 @@ class GpuDnnPoolDesc(GpuOp):
mode : {'max', 'average_inc_pad', 'average_exc_pad'}
mode : {'max', 'average_inc_pad', 'average_exc_pad'}
The old deprecated name 'average' correspond to 'average_inc_pad'.
The old deprecated name 'average' correspond to 'average_inc_pad'.
pad
pad
(padX, padY) padding information.
(pad_h, pad_w) padding information.
padX is the size of the left and right borders,
pad_h is the number of zero-valued pixels added to each of the top and
padY is the size of the top and bottom borders.
bottom borders.
pad_w is the number of zero-valued pixels added to each of the left and
right borders.
"""
"""
...
@@ -1752,10 +1760,13 @@ def dnn_pool(img, ws, stride=(1, 1), mode='max', pad=(0, 0)):
...
@@ -1752,10 +1760,13 @@ def dnn_pool(img, ws, stride=(1, 1), mode='max', pad=(0, 0)):
Subsampling stride (default: (1, 1)).
Subsampling stride (default: (1, 1)).
mode : {'max', 'average_inc_pad', 'average_exc_pad}
mode : {'max', 'average_inc_pad', 'average_exc_pad}
pad
pad
(padX, padY) padding information.
(pad_h, pad_w) padding information.
padX is the size of the left and right borders,
pad_h is the number of zero-valued pixels added to each of the top and
padY is the size of the top and bottom borders.
bottom borders.
:param nd: dimensions of pooling, can be 2 or 3 for 2d or 3d pooling
pad_w is the number of zero-valued pixels added to each of the left
and right borders.
nd
Number of dimensions of pooling, can be 2 or 3 for 2d or 3d pooling
If set to 3 all other params (except mode) must have an extra
If set to 3 all other params (except mode) must have an extra
dimension to match. 3 is only available for cudnn v3
dimension to match. 3 is only available for cudnn v3
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论