Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
6bd93c9f
提交
6bd93c9f
authored
3月 19, 2013
作者:
lamblin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1286 from nouiz/conv_doc
Update the conv2d doc to hopefully make it more clear.
上级
99079db1
c2ca7e13
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
12 行删除
+15
-12
install.txt
doc/install.txt
+1
-1
conv.py
theano/tensor/nnet/conv.py
+14
-11
没有找到文件。
doc/install.txt
浏览文件 @
6bd93c9f
...
@@ -940,7 +940,7 @@ This installer will:
...
@@ -940,7 +940,7 @@ This installer will:
``theanorc_default.txt``, and set it up as your ``.theanorc.txt`` if it
``theanorc_default.txt``, and set it up as your ``.theanorc.txt`` if it
does not exist. It contains:
does not exist. It contains:
.. code-block:: c
onfi
g
.. code-block:: c
f
g
[global]
[global]
openmp=False
openmp=False
...
...
theano/tensor/nnet/conv.py
浏览文件 @
6bd93c9f
...
@@ -36,34 +36,37 @@ _logger = logging.getLogger("theano.tensor.nnet.conv")
...
@@ -36,34 +36,37 @@ _logger = logging.getLogger("theano.tensor.nnet.conv")
def
conv2d
(
input
,
filters
,
image_shape
=
None
,
filter_shape
=
None
,
def
conv2d
(
input
,
filters
,
image_shape
=
None
,
filter_shape
=
None
,
border_mode
=
'valid'
,
subsample
=
(
1
,
1
),
**
kargs
):
border_mode
=
'valid'
,
subsample
=
(
1
,
1
),
**
kargs
):
"""This function will build the symbolic graph for convolving a stack of
input
"""This function will build the symbolic graph for convolving a stack of
images with a set of filters. The implementation is modelled after
i
nput i
mages with a set of filters. The implementation is modelled after
Convolutional Neural Networks (CNN). It is simply a wrapper to the ConvOp
but
Convolutional Neural Networks (CNN). It is simply a wrapper to the ConvOp
provides a much cleaner interface.
but
provides a much cleaner interface.
:type input: symbolic 4D tensor
:type input: symbolic 4D tensor
:param input: mini-batch of feature map stacks, of shape image_shape.
:param input: mini-batch of feature map stacks, of shape
(batch size, stack size, nb row, nb col)
see the optional parameter image_shape
:type filters: symbolic 4D tensor
:type filters: symbolic 4D tensor
:param filters: set of filters used in CNN layer of shape filter_shape
:param filters: set of filters used in CNN layer of shape
(nb filters, stack size, nb row, nb col)
see the optional parameter filter_shape
:param border_mode:
:param border_mode:
'valid'-- only apply filter to complete patches of the image. Generates
'valid'-- only apply filter to complete patches of the image. Generates
output of shape: image_shape - filter_shape + 1
output of shape: image_shape - filter_shape + 1
'full' -- zero-pads image to multiple of filter shape to generate output
of
'full' -- zero-pads image to multiple of filter shape to generate output
shape: image_shape + filter_shape - 1
of
shape: image_shape + filter_shape - 1
:type subsample: tuple of len 2
:type subsample: tuple of len 2
:param subsample: factor by which to subsample the output
:param subsample: factor by which to subsample the output
:type image_shape: None, tuple/list of len 4 of int or Constant variable
:type image_shape: None, tuple/list of len 4 of int or Constant variable
:param image_shape:
(batch size, stack size, nb row, nb col)
:param image_shape:
The shape of the input parameter.
Optional, used for optimization like loop unrolling
Optional, used for optimization like loop unrolling
You can put None for any element of the list
You can put None for any element of the list
to tell that this element is not constant.
to tell that this element is not constant.
:type filter_shape: None, tuple/list of len 4 of int or Constant variable
:type filter_shape: None, tuple/list of len 4 of int or Constant variable
:param filter_shape: (nb filters, stack size, nb row, nb col)
:param filter_shape: Optional, used for optimization like loop unrolling
Optional, used for optimization like loop unrolling
You can put None for any element of the list
You can put None for any element of the list
to tell that this element is not constant.
to tell that this element is not constant.
:param kwargs: kwargs are passed onto ConvOp.
:param kwargs: kwargs are passed onto ConvOp.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论