<li><strong>name</strong> (<em>basestring</em>) – The lstmemory layer name.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. size of the lstm cell</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. The dimension of the lstm cell.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>reverse</strong> (<em>bool</em>) –is sequence process reversed or not.</li>
<li><strong>reverse</strong> (<em>bool</em>) –Whether the input sequence is processed in a reverse order.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type. paddle.v2.activation.Tanh is the default activation.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type. paddle.v2.activation.Tanh is the default activation.</li>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) – gate activation type, paddle.v2.activation.Sigmoid by default.</li>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type of this layer’s gates. paddle.v2.activation.Sigmoid is the
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – state activation type, paddle.v2.activation.Tanh by default.</li>
default activation.</li>
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type of the state. paddle.v2.activation.Tanh is the default activation.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
parameter is set to True, the bias is initialized to zero.</li>
parameter is set to True, the bias is initialized to zero.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra Layer attribute</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – The extra layer attribute. See paddle.v2.attr.ExtraAttribute for
<li><strong>name</strong> (<em>None | basestring</em>) – The gru layer name.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer.</em>) – The input of this layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer.</em>) – The input of this layer.</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. size of the gru cell</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. The dimension of the gru cell.</li>
<li><strong>reverse</strong> (<em>bool</em>) – Whether sequence process is reversed or not.</li>
<li><strong>reverse</strong> (<em>bool</em>) – Whether the input sequence is processed in a reverse order.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type, paddle.v2.activation.Tanh is the default. This activation
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type, paddle.v2.activation.Tanh is the default. This activation
affects the <spanclass="math">\({\tilde{h_t}}\)</span>.</li>
affects the <spanclass="math">\({\tilde{h_t}}\)</span>.</li>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) –gate activation type, paddle.v2.activation.Sigmoid by default.
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) –Activation type of this layer’s two gates. paddle.v2.activation.Sigmoid is
This activation affects the <spanclass="math">\(z_t\)</span> and <spanclass="math">\(r_t\)</span>. It is the
the default activation. This activation affects the <spanclass="math">\(z_t\)</span>
<spanclass="math">\(\sigma\)</span> in the above formula.</li>
and <spanclass="math">\(r_t\)</span>. It is the <spanclass="math">\(\sigma\)</span> in the above formula.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
parameter is set to True, the bias is initialized to zero.</li>
parameter is set to True, the bias is initialized to zero.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra Layer attribute</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – The extra layer attribute. See paddle.v2.attr.ExtraAttribute for
details.</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
...
@@ -2219,10 +2215,10 @@ parameter is set to True, the bias is initialized to zero.</li>
...
@@ -2219,10 +2215,10 @@ parameter is set to True, the bias is initialized to zero.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>expand_as</strong> (<em>paddle.v2.config_base.Layer</em>) – Expand as this layer’s sequence info.</li>
<li><strong>expand_as</strong> (<em>paddle.v2.config_base.Layer</em>) – Expand the input according to this layer’s sequence infomation. And
after the operation, the input expanded will have the same number of
elememts as this layer.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
parameter is set to True, the bias is initialized to zero.</li>
parameter is set to True, the bias is initialized to zero.</li>
<li><strong>expand_level</strong> (<em>ExpandLevel</em>) – whether input layer is timestep(default) or sequence.</li>
<li><strong>expand_level</strong> (<em>ExpandLevel</em>) – Whether the input layer is a sequence or the element of a sequence.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – extra layer attributes.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – The extra layer attribute. See paddle.v2.attr.ExtraAttribute for
<dd><p>The gated unit layer implements a simple gating mechanism over the input.
<dd><p>The gated unit layer implements a simple gating mechanism over the input.
The input <spanclass="math">\(X\)</span> is first projected into a new space <spanclass="math">\(X'\)</span>, and
The input <spanclass="math">\(X\)</span> is first projected into a new space <spanclass="math">\(X'\)</span>, and
it is also used to produce a gate weight <spanclass="math">\(\sigma\)</span>. Element-wise
it is also used to produce a gate weight <spanclass="math">\(\sigma\)</span>. Element-wise
product between <ahref="#id11"><spanclass="problematic"id="id12">:match:`X’`</span></a> and <spanclass="math">\(\sigma\)</span> is finally returned.</p>
product between <ahref="#id5"><spanclass="problematic"id="id6">:match:`X’`</span></a> and <spanclass="math">\(\sigma\)</span> is finally returned.</p>
<dlclass="docutils">
<dlclass="docutils">
<dt>Reference:</dt>
<dt>Reference:</dt>
<dd><aclass="reference external"href="https://arxiv.org/abs/1612.08083">Language Modeling with Gated Convolutional Networks</a></dd>
<dd><aclass="reference external"href="https://arxiv.org/abs/1612.08083">Language Modeling with Gated Convolutional Networks</a></dd>
<li><strong>name</strong> (<em>basestring</em>) – The lstmemory layer name.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. size of the lstm cell</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. The dimension of the lstm cell.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>reverse</strong> (<em>bool</em>) –is sequence process reversed or not.</li>
<li><strong>reverse</strong> (<em>bool</em>) –Whether the input sequence is processed in a reverse order.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type. paddle.v2.activation.Tanh is the default activation.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type. paddle.v2.activation.Tanh is the default activation.</li>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) – gate activation type, paddle.v2.activation.Sigmoid by default.</li>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type of this layer’s gates. paddle.v2.activation.Sigmoid is the
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – state activation type, paddle.v2.activation.Tanh by default.</li>
default activation.</li>
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type of the state. paddle.v2.activation.Tanh is the default activation.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
parameter is set to True, the bias is initialized to zero.</li>
parameter is set to True, the bias is initialized to zero.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra Layer attribute</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – The extra layer attribute. See paddle.v2.attr.ExtraAttribute for
<li><strong>name</strong> (<em>None | basestring</em>) – The gru layer name.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer.</em>) – The input of this layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer.</em>) – The input of this layer.</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. size of the gru cell</li>
<li><strong>size</strong> (<em>int</em>) – DEPRECATED. The dimension of the gru cell.</li>
<li><strong>reverse</strong> (<em>bool</em>) – Whether sequence process is reversed or not.</li>
<li><strong>reverse</strong> (<em>bool</em>) – Whether the input sequence is processed in a reverse order.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type, paddle.v2.activation.Tanh is the default. This activation
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type, paddle.v2.activation.Tanh is the default. This activation
affects the <spanclass="math">\({\tilde{h_t}}\)</span>.</li>
affects the <spanclass="math">\({\tilde{h_t}}\)</span>.</li>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) –gate activation type, paddle.v2.activation.Sigmoid by default.
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) –Activation type of this layer’s two gates. paddle.v2.activation.Sigmoid is
This activation affects the <spanclass="math">\(z_t\)</span> and <spanclass="math">\(r_t\)</span>. It is the
the default activation. This activation affects the <spanclass="math">\(z_t\)</span>
<spanclass="math">\(\sigma\)</span> in the above formula.</li>
and <spanclass="math">\(r_t\)</span>. It is the <spanclass="math">\(\sigma\)</span> in the above formula.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
parameter is set to True, the bias is initialized to zero.</li>
parameter is set to True, the bias is initialized to zero.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra Layer attribute</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – The extra layer attribute. See paddle.v2.attr.ExtraAttribute for
details.</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
...
@@ -2220,10 +2216,10 @@ parameter is set to True, the bias is initialized to zero.</li>
...
@@ -2220,10 +2216,10 @@ parameter is set to True, the bias is initialized to zero.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer.</li>
<li><strong>expand_as</strong> (<em>paddle.v2.config_base.Layer</em>) – Expand as this layer’s sequence info.</li>
<li><strong>expand_as</strong> (<em>paddle.v2.config_base.Layer</em>) – Expand the input according to this layer’s sequence infomation. And
after the operation, the input expanded will have the same number of
elememts as this layer.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>name</strong> (<em>basestring</em>) – The name of this layer. It is optional.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) – The bias attribute. If the parameter is set to False or an object
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
whose type is not paddle.v2.attr.ParameterAttribute, no bias is defined. If the
parameter is set to True, the bias is initialized to zero.</li>
parameter is set to True, the bias is initialized to zero.</li>
<li><strong>expand_level</strong> (<em>ExpandLevel</em>) – whether input layer is timestep(default) or sequence.</li>
<li><strong>expand_level</strong> (<em>ExpandLevel</em>) – Whether the input layer is a sequence or the element of a sequence.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – extra layer attributes.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – The extra layer attribute. See paddle.v2.attr.ExtraAttribute for
<dd><p>The gated unit layer implements a simple gating mechanism over the input.
<dd><p>The gated unit layer implements a simple gating mechanism over the input.
The input <spanclass="math">\(X\)</span> is first projected into a new space <spanclass="math">\(X'\)</span>, and
The input <spanclass="math">\(X\)</span> is first projected into a new space <spanclass="math">\(X'\)</span>, and
it is also used to produce a gate weight <spanclass="math">\(\sigma\)</span>. Element-wise
it is also used to produce a gate weight <spanclass="math">\(\sigma\)</span>. Element-wise
product between <ahref="#id11"><spanclass="problematic"id="id12">:match:`X’`</span></a> and <spanclass="math">\(\sigma\)</span> is finally returned.</p>
product between <ahref="#id5"><spanclass="problematic"id="id6">:match:`X’`</span></a> and <spanclass="math">\(\sigma\)</span> is finally returned.</p>
<dlclass="docutils">
<dlclass="docutils">
<dt>Reference:</dt>
<dt>Reference:</dt>
<dd><aclass="reference external"href="https://arxiv.org/abs/1612.08083">Language Modeling with Gated Convolutional Networks</a></dd>
<dd><aclass="reference external"href="https://arxiv.org/abs/1612.08083">Language Modeling with Gated Convolutional Networks</a></dd>