提交 5cc77a88 编写于 作者: T Travis CI

Deploy to GitHub Pages: 7377c59b

上级 71d90225
...@@ -207,6 +207,11 @@ trans_full_matrix_projection ...@@ -207,6 +207,11 @@ trans_full_matrix_projection
Aggregate Layers Aggregate Layers
================ ================
AggregateLevel
--------------
.. autoclass:: paddle.v2.layer.AggregateLevel
:noindex:
.. _api_v2.layer_pooling: .. _api_v2.layer_pooling:
pooling pooling
...@@ -248,6 +253,11 @@ block_expand ...@@ -248,6 +253,11 @@ block_expand
.. _api_v2.layer_expand: .. _api_v2.layer_expand:
ExpandLevel
-----------
.. autoclass:: paddle.v2.layer.ExpandLevel
:noindex:
expand expand
------ ------
.. autoclass:: paddle.v2.layer.expand .. autoclass:: paddle.v2.layer.expand
......
...@@ -1793,6 +1793,30 @@ The simply usage is:</p> ...@@ -1793,6 +1793,30 @@ The simply usage is:</p>
</div> </div>
<div class="section" id="aggregate-layers"> <div class="section" id="aggregate-layers">
<h2>Aggregate Layers<a class="headerlink" href="#aggregate-layers" title="Permalink to this headline"></a></h2> <h2>Aggregate Layers<a class="headerlink" href="#aggregate-layers" title="Permalink to this headline"></a></h2>
<div class="section" id="aggregatelevel">
<h3>AggregateLevel<a class="headerlink" href="#aggregatelevel" title="Permalink to this headline"></a></h3>
<dl class="class">
<dt>
<em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">AggregateLevel</code></dt>
<dd><p>PaddlePaddle supports three sequence types:</p>
<ul class="simple">
<li><code class="code docutils literal"><span class="pre">SequenceType.NO_SEQUENCE</span></code> means the sample is not a sequence.</li>
<li><code class="code docutils literal"><span class="pre">SequenceType.SEQUENCE</span></code> means the sample is a sequence.</li>
<li><code class="code docutils literal"><span class="pre">SequenceType.SUB_SEQUENCE</span></code> means the sample is a nested sequence,
each timestep of which is also a sequence.</li>
</ul>
<p>Accordingly, AggregateLevel supports two modes:</p>
<ul class="simple">
<li><code class="code docutils literal"><span class="pre">AggregateLevel.EACH_TIMESTEP</span></code> means the aggregation acts on each
timestep of a sequence, both <code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code> and <code class="code docutils literal"><span class="pre">SEQUENCE</span></code> will
be aggregated to <code class="code docutils literal"><span class="pre">NO_SEQUENCE</span></code>.</li>
<li><code class="code docutils literal"><span class="pre">AggregateLevel.EACH_SEQUENCE</span></code> means the aggregation acts on each
sequence of a nested sequence, <code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code> will be aggregated to
<code class="code docutils literal"><span class="pre">SEQUENCE</span></code>.</li>
</ul>
</dd></dl>
</div>
<div class="section" id="api-v2-layer-pooling"> <div class="section" id="api-v2-layer-pooling">
<span id="id1"></span><h3>pooling<a class="headerlink" href="#api-v2-layer-pooling" title="Permalink to this headline"></a></h3> <span id="id1"></span><h3>pooling<a class="headerlink" href="#api-v2-layer-pooling" title="Permalink to this headline"></a></h3>
<dl class="class"> <dl class="class">
...@@ -2049,9 +2073,27 @@ convolution neural network, and before recurrent neural network.</p> ...@@ -2049,9 +2073,27 @@ convolution neural network, and before recurrent neural network.</p>
</table> </table>
</dd></dl> </dd></dl>
</div>
<div class="section" id="expandlevel">
<span id="api-v2-layer-expand"></span><h3>ExpandLevel<a class="headerlink" href="#expandlevel" title="Permalink to this headline"></a></h3>
<dl class="class">
<dt>
<em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">ExpandLevel</code></dt>
<dd><p>Please refer to AggregateLevel first.</p>
<p>ExpandLevel supports two modes:</p>
<ul class="simple">
<li><code class="code docutils literal"><span class="pre">ExpandLevel.FROM_TIMESTEP</span></code> means the expandation acts on each
timestep of a sequence, <code class="code docutils literal"><span class="pre">NO_SEQUENCE</span></code> will be expanded to
<code class="code docutils literal"><span class="pre">SEQUENCE</span></code> or <code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code>.</li>
<li><code class="code docutils literal"><span class="pre">ExpandLevel.FROM_SEQUENCE</span></code> means the expandation acts on each
sequence of a nested sequence, <code class="code docutils literal"><span class="pre">SEQUENCE</span></code> will be expanded to
<code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code>.</li>
</ul>
</dd></dl>
</div> </div>
<div class="section" id="expand"> <div class="section" id="expand">
<span id="api-v2-layer-expand"></span><h3>expand<a class="headerlink" href="#expand" title="Permalink to this headline"></a></h3> <h3>expand<a class="headerlink" href="#expand" title="Permalink to this headline"></a></h3>
<dl class="class"> <dl class="class">
<dt> <dt>
<em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">expand</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span></dt> <em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">expand</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span></dt>
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
...@@ -207,6 +207,11 @@ trans_full_matrix_projection ...@@ -207,6 +207,11 @@ trans_full_matrix_projection
Aggregate Layers Aggregate Layers
================ ================
AggregateLevel
--------------
.. autoclass:: paddle.v2.layer.AggregateLevel
:noindex:
.. _api_v2.layer_pooling: .. _api_v2.layer_pooling:
pooling pooling
...@@ -248,6 +253,11 @@ block_expand ...@@ -248,6 +253,11 @@ block_expand
.. _api_v2.layer_expand: .. _api_v2.layer_expand:
ExpandLevel
-----------
.. autoclass:: paddle.v2.layer.ExpandLevel
:noindex:
expand expand
------ ------
.. autoclass:: paddle.v2.layer.expand .. autoclass:: paddle.v2.layer.expand
......
...@@ -1800,6 +1800,30 @@ The simply usage is:</p> ...@@ -1800,6 +1800,30 @@ The simply usage is:</p>
</div> </div>
<div class="section" id="aggregate-layers"> <div class="section" id="aggregate-layers">
<h2>Aggregate Layers<a class="headerlink" href="#aggregate-layers" title="永久链接至标题"></a></h2> <h2>Aggregate Layers<a class="headerlink" href="#aggregate-layers" title="永久链接至标题"></a></h2>
<div class="section" id="aggregatelevel">
<h3>AggregateLevel<a class="headerlink" href="#aggregatelevel" title="永久链接至标题"></a></h3>
<dl class="class">
<dt>
<em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">AggregateLevel</code></dt>
<dd><p>PaddlePaddle supports three sequence types:</p>
<ul class="simple">
<li><code class="code docutils literal"><span class="pre">SequenceType.NO_SEQUENCE</span></code> means the sample is not a sequence.</li>
<li><code class="code docutils literal"><span class="pre">SequenceType.SEQUENCE</span></code> means the sample is a sequence.</li>
<li><code class="code docutils literal"><span class="pre">SequenceType.SUB_SEQUENCE</span></code> means the sample is a nested sequence,
each timestep of which is also a sequence.</li>
</ul>
<p>Accordingly, AggregateLevel supports two modes:</p>
<ul class="simple">
<li><code class="code docutils literal"><span class="pre">AggregateLevel.EACH_TIMESTEP</span></code> means the aggregation acts on each
timestep of a sequence, both <code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code> and <code class="code docutils literal"><span class="pre">SEQUENCE</span></code> will
be aggregated to <code class="code docutils literal"><span class="pre">NO_SEQUENCE</span></code>.</li>
<li><code class="code docutils literal"><span class="pre">AggregateLevel.EACH_SEQUENCE</span></code> means the aggregation acts on each
sequence of a nested sequence, <code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code> will be aggregated to
<code class="code docutils literal"><span class="pre">SEQUENCE</span></code>.</li>
</ul>
</dd></dl>
</div>
<div class="section" id="api-v2-layer-pooling"> <div class="section" id="api-v2-layer-pooling">
<span id="id1"></span><h3>pooling<a class="headerlink" href="#api-v2-layer-pooling" title="永久链接至标题"></a></h3> <span id="id1"></span><h3>pooling<a class="headerlink" href="#api-v2-layer-pooling" title="永久链接至标题"></a></h3>
<dl class="class"> <dl class="class">
...@@ -2056,9 +2080,27 @@ convolution neural network, and before recurrent neural network.</p> ...@@ -2056,9 +2080,27 @@ convolution neural network, and before recurrent neural network.</p>
</table> </table>
</dd></dl> </dd></dl>
</div>
<div class="section" id="expandlevel">
<span id="api-v2-layer-expand"></span><h3>ExpandLevel<a class="headerlink" href="#expandlevel" title="永久链接至标题"></a></h3>
<dl class="class">
<dt>
<em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">ExpandLevel</code></dt>
<dd><p>Please refer to AggregateLevel first.</p>
<p>ExpandLevel supports two modes:</p>
<ul class="simple">
<li><code class="code docutils literal"><span class="pre">ExpandLevel.FROM_TIMESTEP</span></code> means the expandation acts on each
timestep of a sequence, <code class="code docutils literal"><span class="pre">NO_SEQUENCE</span></code> will be expanded to
<code class="code docutils literal"><span class="pre">SEQUENCE</span></code> or <code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code>.</li>
<li><code class="code docutils literal"><span class="pre">ExpandLevel.FROM_SEQUENCE</span></code> means the expandation acts on each
sequence of a nested sequence, <code class="code docutils literal"><span class="pre">SEQUENCE</span></code> will be expanded to
<code class="code docutils literal"><span class="pre">SUB_SEQUENCE</span></code>.</li>
</ul>
</dd></dl>
</div> </div>
<div class="section" id="expand"> <div class="section" id="expand">
<span id="api-v2-layer-expand"></span><h3>expand<a class="headerlink" href="#expand" title="永久链接至标题"></a></h3> <h3>expand<a class="headerlink" href="#expand" title="永久链接至标题"></a></h3>
<dl class="class"> <dl class="class">
<dt> <dt>
<em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">expand</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span></dt> <em class="property">class </em><code class="descclassname">paddle.v2.layer.</code><code class="descname">expand</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span></dt>
......
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</div> </div>
<div class="section" id="expand"> <div class="section" id="expand">
<h2><a class="toc-backref" href="#id6">expand</a><a class="headerlink" href="#expand" title="永久链接至标题"></a></h2> <h2><a class="toc-backref" href="#id6">expand</a><a class="headerlink" href="#expand" title="永久链接至标题"></a></h2>
<p>expand 的使用示例如下,详细见 <a class="reference internal" href="../../../api/v2/config/layer.html#api-v2-layer-expand"><span class="std std-ref">expand</span></a> 配置API。</p> <p>expand 的使用示例如下,详细见 <a class="reference internal" href="../../../api/v2/config/layer.html#api-v2-layer-expand"><span class="std std-ref">ExpandLevel</span></a> 配置API。</p>
<div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">ex</span> <span class="o">=</span> expand<span class="o">(</span><span class="nv">input</span><span class="o">=</span>layer1, <div class="highlight-bash"><div class="highlight"><pre><span></span><span class="nv">ex</span> <span class="o">=</span> expand<span class="o">(</span><span class="nv">input</span><span class="o">=</span>layer1,
<span class="nv">expand_as</span><span class="o">=</span>layer2, <span class="nv">expand_as</span><span class="o">=</span>layer2,
<span class="nv">expand_level</span><span class="o">=</span>ExpandLevel.FROM_TIMESTEP<span class="o">)</span> <span class="nv">expand_level</span><span class="o">=</span>ExpandLevel.FROM_TIMESTEP<span class="o">)</span>
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册