Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
31bae860
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
31bae860
编写于
9月 21, 2016
作者:
T
Travis CI
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deploy to GitHub Pages:
98bc889c
上级
88a05808
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
4 deletion
+6
-4
doc/searchindex.js
doc/searchindex.js
+1
-1
doc/ui/api/trainer_config_helpers/layers.html
doc/ui/api/trainer_config_helpers/layers.html
+5
-3
未找到文件。
doc/searchindex.js
浏览文件 @
31bae860
此差异已折叠。
点击以展开。
doc/ui/api/trainer_config_helpers/layers.html
浏览文件 @
31bae860
...
...
@@ -257,13 +257,14 @@ default Bias.</li>
<h2>
conv_operator
<a
class=
"headerlink"
href=
"#conv-operator"
title=
"Permalink to this headline"
>
¶
</a></h2>
<dl
class=
"function"
>
<dt>
<code
class=
"descclassname"
>
paddle.trainer_config_helpers.layers.
</code><code
class=
"descname"
>
conv_operator
</code><span
class=
"sig-paren"
>
(
</span><em>
i
nput
</em>
,
<em>
filter_size
</em>
,
<em>
num_filters
</em>
,
<em>
num_channel=None
</em>
,
<em>
stride=1
</em>
,
<em>
padding=0
</em>
,
<em>
groups=1
</em>
,
<em>
filter_size_y=None
</em>
,
<em>
stride_y=None
</em>
,
<em>
padding_y=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<code
class=
"descclassname"
>
paddle.trainer_config_helpers.layers.
</code><code
class=
"descname"
>
conv_operator
</code><span
class=
"sig-paren"
>
(
</span><em>
i
mg
</em>
,
<em>
filter
</em>
,
<em>
filter_size
</em>
,
<em>
num_filters
</em>
,
<em>
num_channel=None
</em>
,
<em>
stride=1
</em>
,
<em>
padding=0
</em>
,
<em>
groups=1
</em>
,
<em>
filter_size_y=None
</em>
,
<em>
stride_y=None
</em>
,
<em>
padding_y=None
</em><span
class=
"sig-paren"
>
)
</span></dt>
<dd><p>
Different from img_conv_layer, conv_op is an Operator, which can be used
in mixed_layer. And conv_op takes two inputs to perform convolution.
The first input is the image and the second is filter kernel. It only
support GPU mode.
</p>
<p>
The example usage is:
</p>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
op
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
conv_operator
</span><span
class=
"p"
>
(
</span><span
class=
"nb"
>
input
</span><span
class=
"o"
>
=
</span><span
class=
"p"
>
[
</span><span
class=
"n"
>
layer1
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
layer2
</span><span
class=
"p"
>
],
</span>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
op
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
conv_operator
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
img
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
input1
</span><span
class=
"p"
>
,
</span>
<span
class=
"nb"
>
filter
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
input2
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
filter_size
</span><span
class=
"o"
>
=
</span><span
class=
"mf"
>
3.0
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
num_filters
</span><span
class=
"o"
>
=
</span><span
class=
"mi"
>
64
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
num_channels
</span><span
class=
"o"
>
=
</span><span
class=
"mi"
>
64
</span><span
class=
"p"
>
)
</span>
...
...
@@ -274,7 +275,8 @@ support GPU mode.</p>
<col
class=
"field-body"
/>
<tbody
valign=
"top"
>
<tr
class=
"field-odd field"
><th
class=
"field-name"
>
Parameters:
</th><td
class=
"field-body"
><ul
class=
"first simple"
>
<li><strong>
input
</strong>
(
<em>
LayerOutput|list|tuple
</em>
)
–
Input layer.
</li>
<li><strong>
img
</strong>
(
<em>
LayerOutput
</em>
)
–
input image
</li>
<li><strong>
filter
</strong>
(
<em>
LayerOutput
</em>
)
–
input filter
</li>
<li><strong>
filter_size
</strong>
(
<em>
int
</em>
)
–
The x dimension of a filter kernel.
</li>
<li><strong>
filter_size_y
</strong>
(
<em>
int
</em>
)
–
The y dimension of a filter kernel. Since
PaddlePaddle now supports rectangular filters,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录