Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
23d016da
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
23d016da
编写于
6月 20, 2017
作者:
T
Travis CI
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deploy to GitHub Pages:
8266546e
上级
bef21ad1
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
44 addition
and
16 deletion
+44
-16
develop/doc/api/v2/config/layer.html
develop/doc/api/v2/config/layer.html
+21
-7
develop/doc/searchindex.js
develop/doc/searchindex.js
+1
-1
develop/doc_cn/api/v2/config/layer.html
develop/doc_cn/api/v2/config/layer.html
+21
-7
develop/doc_cn/searchindex.js
develop/doc_cn/searchindex.js
+1
-1
未找到文件。
develop/doc/api/v2/config/layer.html
浏览文件 @
23d016da
...
...
@@ -2010,13 +2010,14 @@ Inputs can be list of paddle.v2.config_base.Layer or list of projection.</p>
<dl
class=
"docutils"
>
<dt>
Inputs:
</dt>
<dd><ul
class=
"first last simple"
>
<li>
a = [a1, a2, ..., a
n
]
</li>
<li>
a = [a1, a2, ..., a
m
]
</li>
<li>
b = [b1, b2, ..., bn]
</li>
<li>
Note that the length of a and b should be the same.
</li>
</ul>
</dd>
</dl>
<p>
Output: [a1, b1, a2, b2, ..., an, bn]
</p>
<p>
Output: [a1, ..., am, b1, ..., bn]
</p>
<p>
Note that the above computation is for one sample. Multiple samples are
processed in one batch.
</p>
<p>
The example usage is:
</p>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
concat
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
seq_concat
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
a
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
layer1
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
b
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
layer2
</span><span
class=
"p"
>
)
</span>
</pre></div>
...
...
@@ -2171,10 +2172,17 @@ bias.</li>
<dl
class=
"class"
>
<dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.layer.
</code><code
class=
"descname"
>
repeat
</code></dt>
<dd><p>
A layer for repeating the input for num_repeats times. This is equivalent
to apply concat() with num_repeats same input.
</p>
<div
class=
"math"
>
\[y = [x, x, \cdots, x]\]
</div>
<dd><p>
A layer for repeating the input for num_repeats times.
</p>
<p>
If as_row_vector:
.. math:
</p>
<div
class=
"highlight-default"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
y
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"p"
>
[
</span><span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
]
</span>
</pre></div>
</div>
<p>
If not as_row_vector:
.. math:
</p>
<div
class=
"highlight-default"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
y
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"p"
>
[
</span><span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
]
</span>
</pre></div>
</div>
<p>
The example usage is:
</p>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
expand
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
repeat
</span><span
class=
"p"
>
(
</span><span
class=
"nb"
>
input
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
layer
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
num_repeats
</span><span
class=
"o"
>
=
</span><span
class=
"mi"
>
4
</span><span
class=
"p"
>
)
</span>
</pre></div>
...
...
@@ -2187,6 +2195,12 @@ to apply concat() with num_repeats same input.</p>
<li><strong>
input
</strong>
(
<em>
paddle.v2.config_base.Layer
</em>
)
–
Input layer
</li>
<li><strong>
num_repeats
</strong>
(
<em>
int
</em>
)
–
Repeat the input so many times
</li>
<li><strong>
name
</strong>
(
<em>
basestring
</em>
)
–
Layer name.
</li>
<li><strong>
as_row_vector
</strong>
(
<em>
bool
</em>
)
–
True for treating input as row vector and repeating
in the column direction. This is equivalent to apply
concat() with num_repeats same input.
False for treating input as column vector and repeating
in the row direction.
</li>
<li><strong>
act
</strong>
(
<em>
paddle.v2.activation.Base
</em>
)
–
Activation type.
</li>
<li><strong>
layer_attr
</strong>
(
<em>
paddle.v2.attr.ExtraAttribute
</em>
)
–
extra layer attributes.
</li>
</ul>
</td>
...
...
develop/doc/searchindex.js
浏览文件 @
23d016da
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
develop/doc_cn/api/v2/config/layer.html
浏览文件 @
23d016da
...
...
@@ -2015,13 +2015,14 @@ Inputs can be list of paddle.v2.config_base.Layer or list of projection.</p>
<dl
class=
"docutils"
>
<dt>
Inputs:
</dt>
<dd><ul
class=
"first last simple"
>
<li>
a = [a1, a2, ..., a
n
]
</li>
<li>
a = [a1, a2, ..., a
m
]
</li>
<li>
b = [b1, b2, ..., bn]
</li>
<li>
Note that the length of a and b should be the same.
</li>
</ul>
</dd>
</dl>
<p>
Output: [a1, b1, a2, b2, ..., an, bn]
</p>
<p>
Output: [a1, ..., am, b1, ..., bn]
</p>
<p>
Note that the above computation is for one sample. Multiple samples are
processed in one batch.
</p>
<p>
The example usage is:
</p>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
concat
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
seq_concat
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
a
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
layer1
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
b
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
layer2
</span><span
class=
"p"
>
)
</span>
</pre></div>
...
...
@@ -2176,10 +2177,17 @@ bias.</li>
<dl
class=
"class"
>
<dt>
<em
class=
"property"
>
class
</em><code
class=
"descclassname"
>
paddle.v2.layer.
</code><code
class=
"descname"
>
repeat
</code></dt>
<dd><p>
A layer for repeating the input for num_repeats times. This is equivalent
to apply concat() with num_repeats same input.
</p>
<div
class=
"math"
>
\[y = [x, x, \cdots, x]\]
</div>
<dd><p>
A layer for repeating the input for num_repeats times.
</p>
<p>
If as_row_vector:
.. math:
</p>
<div
class=
"highlight-default"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
y
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"p"
>
[
</span><span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
]
</span>
</pre></div>
</div>
<p>
If not as_row_vector:
.. math:
</p>
<div
class=
"highlight-default"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
y
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"p"
>
[
</span><span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_1
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
,
</span>
\
<span
class=
"n"
>
cdots
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
x_n
</span><span
class=
"p"
>
]
</span>
</pre></div>
</div>
<p>
The example usage is:
</p>
<div
class=
"highlight-python"
><div
class=
"highlight"
><pre><span></span><span
class=
"n"
>
expand
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
repeat
</span><span
class=
"p"
>
(
</span><span
class=
"nb"
>
input
</span><span
class=
"o"
>
=
</span><span
class=
"n"
>
layer
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
num_repeats
</span><span
class=
"o"
>
=
</span><span
class=
"mi"
>
4
</span><span
class=
"p"
>
)
</span>
</pre></div>
...
...
@@ -2192,6 +2200,12 @@ to apply concat() with num_repeats same input.</p>
<li><strong>
input
</strong>
(
<em>
paddle.v2.config_base.Layer
</em>
)
–
Input layer
</li>
<li><strong>
num_repeats
</strong>
(
<em>
int
</em>
)
–
Repeat the input so many times
</li>
<li><strong>
name
</strong>
(
<em>
basestring
</em>
)
–
Layer name.
</li>
<li><strong>
as_row_vector
</strong>
(
<em>
bool
</em>
)
–
True for treating input as row vector and repeating
in the column direction. This is equivalent to apply
concat() with num_repeats same input.
False for treating input as column vector and repeating
in the row direction.
</li>
<li><strong>
act
</strong>
(
<em>
paddle.v2.activation.Base
</em>
)
–
Activation type.
</li>
<li><strong>
layer_attr
</strong>
(
<em>
paddle.v2.attr.ExtraAttribute
</em>
)
–
extra layer attributes.
</li>
</ul>
</td>
...
...
develop/doc_cn/searchindex.js
浏览文件 @
23d016da
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录