<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>input</strong> (<em>paddle.v2.config_base.Layer</em>) – batch normalization input. Better be linear activation.
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – batch normalization input. Better be linear activation.
Because there is an activation inside batch_normalization.</li>
Because there is an activation inside batch_normalization.</li>
<li><strong>batch_norm_type</strong> (<em>None|string</em><em>, </em><em>None</em><em> or </em><em>"batch_norm"</em><em> or </em><em>"cudnn_batch_norm"</em>) – We have batch_norm and cudnn_batch_norm. batch_norm
<li><strong>batch_norm_type</strong> (<em>None | string</em><em>, </em><em>None</em><em> or </em><em>"batch_norm"</em><em> or </em><em>"cudnn_batch_norm"</em>) – We have batch_norm and cudnn_batch_norm. batch_norm
supports both CPU and GPU. cudnn_batch_norm requires
supports both CPU and GPU. cudnn_batch_norm requires
cuDNN version greater or equal to v4 (>=v4). But
cuDNN version greater or equal to v4 (>=v4). But
cudnn_batch_norm is faster and needs less memory
cudnn_batch_norm is faster and needs less memory
...
@@ -876,12 +876,12 @@ normalization will normalize input near zero.</li>
...
@@ -876,12 +876,12 @@ normalization will normalize input near zero.</li>
<li><strong>num_channels</strong> (<em>int</em>) – num of image channels or previous layer’s number of
<li><strong>num_channels</strong> (<em>int</em>) – num of image channels or previous layer’s number of
filters. None will automatically get from layer’s
filters. None will automatically get from layer’s
input.</li>
input.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) –<spanclass="math">\(\beta\)</span>, better be zero when initialize. So the
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) –<spanclass="math">\(\beta\)</span>, better be zero when initialize. So the
initial_std=0, initial_mean=1 is best practice.</li>
initial_std=0, initial_mean=1 is best practice.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) –<spanclass="math">\(\gamma\)</span>, better be one when initialize. So the
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) –<spanclass="math">\(\gamma\)</span>, better be one when initialize. So the
initial_std=0, initial_mean=1 is best practice.</li>
initial_std=0, initial_mean=1 is best practice.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – Extra Layer Attribute.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – Extra Layer Attribute.</li>
<li><strong>use_global_stats</strong> (<em>bool|None.</em>) – whether use moving mean/variance statistics
<li><strong>use_global_stats</strong> (<em>bool | None.</em>) – whether use moving mean/variance statistics
during testing peroid. If None or True,
during testing peroid. If None or True,
it will use moving mean/variance statistics during
it will use moving mean/variance statistics during
testing. If False, it will use the mean
testing. If False, it will use the mean
...
@@ -926,7 +926,7 @@ and <span class="math">\(out\)</span> is a (batchSize x dataDim) output vector.<
...
@@ -926,7 +926,7 @@ and <span class="math">\(out\)</span> is a (batchSize x dataDim) output vector.<
<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>) – is sequence process reversed or not.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –activation type, paddle.v2.activation.Tanh by default. <spanclass="math">\(h_t\)</span></li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –Activation type. paddle.v2.activation.Tanh is the default. <spanclass="math">\(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>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) – gate activation type, paddle.v2.activation.Sigmoid by default.</li>
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – state activation type, paddle.v2.activation.Tanh by default.</li>
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – state activation type, paddle.v2.activation.Tanh by default.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) – The Bias Attribute. If the parameter is set to
<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 something not type of paddle.v2.attr.ParameterAttribute,
False or something not type of paddle.v2.attr.ParameterAttribute,
<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>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input layer for this embedding. NOTE: must be Index Data.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer, which must be Index Data.</li>
<li><strong>size</strong> (<em>int</em>) – The embedding dimension.</li>
<li><strong>size</strong> (<em>int</em>) – The embedding dimension.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – The embedding parameter attribute. See paddle.v2.attr.ParameterAttribute
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – The embedding parameter attribute. See paddle.v2.attr.ParameterAttribute
for details.</li>
for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Extra layer Config. Default is None.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra layer Config. Default is None.</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>input</strong> (<em>paddle.v2.config_base.Layer|list|tuple</em>) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer | list | tuple</em>) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
paddle.v2.config_base.Layer.</li>
paddle.v2.config_base.Layer.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation Type, default is tanh.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation Type. paddle.v2.activation.Linear is the default.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) – The Bias Attribute. If the parameter is set to
<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 something not type of paddle.v2.attr.ParameterAttribute,
False or something not type of paddle.v2.attr.ParameterAttribute,
no bias is defined. If the parameter is set to
no bias is defined. If the parameter is set to
True, the bias is initialized to zero.</li>
True, the bias is initialized to zero.</li>
...
@@ -2609,7 +2607,7 @@ processed in one batch.</p>
...
@@ -2609,7 +2607,7 @@ processed in one batch.</p>
<li><strong>vectors</strong> (<em>paddle.v2.config_base.Layer</em>) – The vector layer.</li>
<li><strong>vectors</strong> (<em>paddle.v2.config_base.Layer</em>) – The vector layer.</li>
<li><strong>size</strong> (<em>int</em>) – the dimension of this layer.</li>
<li><strong>size</strong> (<em>int</em>) – the dimension of 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>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Extra Layer config.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra Layer config.</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
...
@@ -2645,7 +2643,7 @@ which is used in NEURAL TURING MACHINE.</p>
...
@@ -2645,7 +2643,7 @@ which is used in NEURAL TURING MACHINE.</p>
<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>input</strong> (<em>paddle.v2.config_base.Layer|list|tuple|collections.Sequence</em>) – The input layers. It could be a paddle.v2.config_base.Layer of list/tuple of paddle.v2.config_base.Layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer | list | tuple | collections.Sequence</em>) – The input layers. It could be a paddle.v2.config_base.Layer of list/tuple of paddle.v2.config_base.Layer.</li>
<li><strong>weight</strong> (<em>paddle.v2.config_base.Layer</em>) – weight layer, can be None(default)</li>
<li><strong>weight</strong> (<em>paddle.v2.config_base.Layer</em>) – weight layer, can be None(default)</li>
<li><strong>num_classes</strong> (<em>int</em>) – number of classes.</li>
<li><strong>num_classes</strong> (<em>int</em>) – number of classes.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation, default is Sigmoid.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type. paddle.v2.activation.Sigmoid is the default.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The Parameter Attribute|list.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The Parameter Attribute|list.</li>
<li><strong>num_neg_samples</strong> (<em>int</em>) – number of negative samples. Default is 10.</li>
<li><strong>num_neg_samples</strong> (<em>int</em>) – number of negative samples. Default is 10.</li>
<li><strong>neg_distribution</strong> (<em>list|tuple|collections.Sequence|None</em>) – The distribution for generating the random negative labels.
<li><strong>neg_distribution</strong> (<em>list | tuple | collections.Sequence | None</em>) – The distribution for generating the random negative labels.
A uniform distribution will be used if not provided.
A uniform distribution will be used if not provided.
If not None, its length must be equal to num_classes.</li>
If not None, its length must be equal to num_classes.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) – The Bias Attribute. If the parameter is set to
<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 something not type of paddle.v2.attr.ParameterAttribute,
False or something not type of paddle.v2.attr.ParameterAttribute,
no bias is defined. If the parameter is set to
no bias is defined. If the parameter is set to
True, the bias is initialized to zero.</li>
True, the bias is initialized to zero.</li>
...
@@ -3901,16 +3899,15 @@ Hierarchical Probabilistic Neural Network Language Model.”</p>
...
@@ -3901,16 +3899,15 @@ Hierarchical Probabilistic Neural Network Language Model.”</p>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer|list|tuple</em>) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer | list | tuple</em>) – The input of this layer.</li>
<li>partial_sum = number of outputs, indicates all elements share a same weight.</li>
<li>partial_sum = number of outputs, indicates all elements share a same weight.</li>
</ul>
</ul>
</li>
</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Extra layer configurations. Default is None.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra layer configurations. Default is None.</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
...
@@ -4146,24 +4143,24 @@ product between <a href="#id11"><span class="problematic" id="id12">:match:`X
...
@@ -4146,24 +4143,24 @@ product between <a href="#id11"><span class="problematic" id="id12">:match:`X
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) –input for 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>) – output size of the gated unit.</li>
<li><strong>size</strong> (<em>int</em>) – output size of the gated unit.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –activation type of the projected input.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –Activation type of the projected input. paddle.v2.activation.Linear is the default.</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>gate_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Attributes to tune the gate output, for example, error
<li><strong>gate_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Attributes to tune the gate output, for example, error
clipping threshold, dropout and so on. See paddle.v2.attr.ExtraAttribute for
clipping threshold, dropout and so on. See paddle.v2.attr.ExtraAttribute for
more details.</li>
more details.</li>
<li><strong>gate_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable projected matrix
<li><strong>gate_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable projected matrix
parameter of the gate.</li>
parameter of the gate.</li>
<li><strong>gate_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable bias of the gate.</li>
<li><strong>gate_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable bias of the gate.</li>
<li><strong>inproj_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Attributes to the tune the projected input, for
<li><strong>inproj_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Attributes to the tune the projected input, for
example, error clipping threshold, dropout and so on. See
example, error clipping threshold, dropout and so on. See
paddle.v2.attr.ExtraAttribute for more details.</li>
paddle.v2.attr.ExtraAttribute for more details.</li>
<li><strong>inproj_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable parameter of
<li><strong>inproj_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable parameter of
the projection of input.</li>
the projection of input.</li>
<li><strong>inproj_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable bias of
<li><strong>inproj_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable bias of
projection of the input.</li>
projection of the input.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Attributes to tune the final output of the gated unit,
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Attributes to tune the final output of the gated unit,
for example, error clipping threshold, dropout and so on. See
for example, error clipping threshold, dropout and so on. See
paddle.v2.attr.ExtraAttribute for more details.</li>
paddle.v2.attr.ExtraAttribute for more details.</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>input</strong> (<em>paddle.v2.config_base.Layer</em>) – batch normalization input. Better be linear activation.
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – batch normalization input. Better be linear activation.
Because there is an activation inside batch_normalization.</li>
Because there is an activation inside batch_normalization.</li>
<li><strong>batch_norm_type</strong> (<em>None|string</em><em>, </em><em>None</em><em> or </em><em>"batch_norm"</em><em> or </em><em>"cudnn_batch_norm"</em>) – We have batch_norm and cudnn_batch_norm. batch_norm
<li><strong>batch_norm_type</strong> (<em>None | string</em><em>, </em><em>None</em><em> or </em><em>"batch_norm"</em><em> or </em><em>"cudnn_batch_norm"</em>) – We have batch_norm and cudnn_batch_norm. batch_norm
supports both CPU and GPU. cudnn_batch_norm requires
supports both CPU and GPU. cudnn_batch_norm requires
cuDNN version greater or equal to v4 (>=v4). But
cuDNN version greater or equal to v4 (>=v4). But
cudnn_batch_norm is faster and needs less memory
cudnn_batch_norm is faster and needs less memory
...
@@ -890,12 +890,12 @@ normalization will normalize input near zero.</li>
...
@@ -890,12 +890,12 @@ normalization will normalize input near zero.</li>
<li><strong>num_channels</strong> (<em>int</em>) – num of image channels or previous layer’s number of
<li><strong>num_channels</strong> (<em>int</em>) – num of image channels or previous layer’s number of
filters. None will automatically get from layer’s
filters. None will automatically get from layer’s
input.</li>
input.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) –<spanclass="math">\(\beta\)</span>, better be zero when initialize. So the
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None | bool | Any</em>) –<spanclass="math">\(\beta\)</span>, better be zero when initialize. So the
initial_std=0, initial_mean=1 is best practice.</li>
initial_std=0, initial_mean=1 is best practice.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) –<spanclass="math">\(\gamma\)</span>, better be one when initialize. So the
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) –<spanclass="math">\(\gamma\)</span>, better be one when initialize. So the
initial_std=0, initial_mean=1 is best practice.</li>
initial_std=0, initial_mean=1 is best practice.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – Extra Layer Attribute.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute</em>) – Extra Layer Attribute.</li>
<li><strong>use_global_stats</strong> (<em>bool|None.</em>) – whether use moving mean/variance statistics
<li><strong>use_global_stats</strong> (<em>bool | None.</em>) – whether use moving mean/variance statistics
during testing peroid. If None or True,
during testing peroid. If None or True,
it will use moving mean/variance statistics during
it will use moving mean/variance statistics during
testing. If False, it will use the mean
testing. If False, it will use the mean
...
@@ -940,7 +940,7 @@ and <span class="math">\(out\)</span> is a (batchSize x dataDim) output vector.<
...
@@ -940,7 +940,7 @@ and <span class="math">\(out\)</span> is a (batchSize x dataDim) output vector.<
<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>) – is sequence process reversed or not.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –activation type, paddle.v2.activation.Tanh by default. <spanclass="math">\(h_t\)</span></li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –Activation type. paddle.v2.activation.Tanh is the default. <spanclass="math">\(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>
<li><strong>gate_act</strong> (<em>paddle.v2.activation.Base</em>) – gate activation type, paddle.v2.activation.Sigmoid by default.</li>
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – state activation type, paddle.v2.activation.Tanh by default.</li>
<li><strong>state_act</strong> (<em>paddle.v2.activation.Base</em>) – state activation type, paddle.v2.activation.Tanh by default.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) – The Bias Attribute. If the parameter is set to
<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 something not type of paddle.v2.attr.ParameterAttribute,
False or something not type of paddle.v2.attr.ParameterAttribute,
<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>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input layer for this embedding. NOTE: must be Index Data.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) – The input of this layer, which must be Index Data.</li>
<li><strong>size</strong> (<em>int</em>) – The embedding dimension.</li>
<li><strong>size</strong> (<em>int</em>) – The embedding dimension.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – The embedding parameter attribute. See paddle.v2.attr.ParameterAttribute
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – The embedding parameter attribute. See paddle.v2.attr.ParameterAttribute
for details.</li>
for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Extra layer Config. Default is None.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra layer Config. Default is None.</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>input</strong> (<em>paddle.v2.config_base.Layer|list|tuple</em>) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer | list | tuple</em>) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
paddle.v2.config_base.Layer.</li>
paddle.v2.config_base.Layer.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation Type, default is tanh.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation Type. paddle.v2.activation.Linear is the default.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) – The Bias Attribute. If the parameter is set to
<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 something not type of paddle.v2.attr.ParameterAttribute,
False or something not type of paddle.v2.attr.ParameterAttribute,
no bias is defined. If the parameter is set to
no bias is defined. If the parameter is set to
True, the bias is initialized to zero.</li>
True, the bias is initialized to zero.</li>
...
@@ -2623,7 +2621,7 @@ processed in one batch.</p>
...
@@ -2623,7 +2621,7 @@ processed in one batch.</p>
<li><strong>vectors</strong> (<em>paddle.v2.config_base.Layer</em>) – The vector layer.</li>
<li><strong>vectors</strong> (<em>paddle.v2.config_base.Layer</em>) – The vector layer.</li>
<li><strong>size</strong> (<em>int</em>) – the dimension of this layer.</li>
<li><strong>size</strong> (<em>int</em>) – the dimension of 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>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Extra Layer config.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra Layer config.</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
...
@@ -2659,7 +2657,7 @@ which is used in NEURAL TURING MACHINE.</p>
...
@@ -2659,7 +2657,7 @@ which is used in NEURAL TURING MACHINE.</p>
<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>input</strong> (<em>paddle.v2.config_base.Layer|list|tuple|collections.Sequence</em>) – The input layers. It could be a paddle.v2.config_base.Layer of list/tuple of paddle.v2.config_base.Layer.</li>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer | list | tuple | collections.Sequence</em>) – The input layers. It could be a paddle.v2.config_base.Layer of list/tuple of paddle.v2.config_base.Layer.</li>
<li><strong>weight</strong> (<em>paddle.v2.config_base.Layer</em>) – weight layer, can be None(default)</li>
<li><strong>weight</strong> (<em>paddle.v2.config_base.Layer</em>) – weight layer, can be None(default)</li>
<li><strong>num_classes</strong> (<em>int</em>) – number of classes.</li>
<li><strong>num_classes</strong> (<em>int</em>) – number of classes.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation, default is Sigmoid.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) – Activation type. paddle.v2.activation.Sigmoid is the default.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The Parameter Attribute|list.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute</em>) – The Parameter Attribute|list.</li>
<li><strong>num_neg_samples</strong> (<em>int</em>) – number of negative samples. Default is 10.</li>
<li><strong>num_neg_samples</strong> (<em>int</em>) – number of negative samples. Default is 10.</li>
<li><strong>neg_distribution</strong> (<em>list|tuple|collections.Sequence|None</em>) – The distribution for generating the random negative labels.
<li><strong>neg_distribution</strong> (<em>list | tuple | collections.Sequence | None</em>) – The distribution for generating the random negative labels.
A uniform distribution will be used if not provided.
A uniform distribution will be used if not provided.
If not None, its length must be equal to num_classes.</li>
If not None, its length must be equal to num_classes.</li>
<li><strong>bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None|Bool|Any</em>) – The Bias Attribute. If the parameter is set to
<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 something not type of paddle.v2.attr.ParameterAttribute,
False or something not type of paddle.v2.attr.ParameterAttribute,
no bias is defined. If the parameter is set to
no bias is defined. If the parameter is set to
True, the bias is initialized to zero.</li>
True, the bias is initialized to zero.</li>
...
@@ -3915,16 +3913,15 @@ Hierarchical Probabilistic Neural Network Language Model.”</p>
...
@@ -3915,16 +3913,15 @@ Hierarchical Probabilistic Neural Network Language Model.”</p>
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer|list|tuple</em>) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer | list | tuple</em>) – The input of this layer.</li>
<li>partial_sum = number of outputs, indicates all elements share a same weight.</li>
<li>partial_sum = number of outputs, indicates all elements share a same weight.</li>
</ul>
</ul>
</li>
</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – The parameter attribute. See paddle.v2.attr.ParameterAttribute for details.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Extra layer configurations. Default is None.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Extra layer configurations. Default is None.</li>
</ul>
</ul>
</td>
</td>
</tr>
</tr>
...
@@ -4160,24 +4157,24 @@ product between <a href="#id11"><span class="problematic" id="id12">:match:`X
...
@@ -4160,24 +4157,24 @@ product between <a href="#id11"><span class="problematic" id="id12">:match:`X
<li><strong>input</strong> (<em>paddle.v2.config_base.Layer</em>) –input for 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>) – output size of the gated unit.</li>
<li><strong>size</strong> (<em>int</em>) – output size of the gated unit.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –activation type of the projected input.</li>
<li><strong>act</strong> (<em>paddle.v2.activation.Base</em>) –Activation type of the projected input. paddle.v2.activation.Linear is the default.</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>gate_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Attributes to tune the gate output, for example, error
<li><strong>gate_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Attributes to tune the gate output, for example, error
clipping threshold, dropout and so on. See paddle.v2.attr.ExtraAttribute for
clipping threshold, dropout and so on. See paddle.v2.attr.ExtraAttribute for
more details.</li>
more details.</li>
<li><strong>gate_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable projected matrix
<li><strong>gate_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable projected matrix
parameter of the gate.</li>
parameter of the gate.</li>
<li><strong>gate_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable bias of the gate.</li>
<li><strong>gate_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable bias of the gate.</li>
<li><strong>inproj_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Attributes to the tune the projected input, for
<li><strong>inproj_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Attributes to the tune the projected input, for
example, error clipping threshold, dropout and so on. See
example, error clipping threshold, dropout and so on. See
paddle.v2.attr.ExtraAttribute for more details.</li>
paddle.v2.attr.ExtraAttribute for more details.</li>
<li><strong>inproj_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable parameter of
<li><strong>inproj_param_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable parameter of
the projection of input.</li>
the projection of input.</li>
<li><strong>inproj_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute|None</em>) – Attributes to tune the learnable bias of
<li><strong>inproj_bias_attr</strong> (<em>paddle.v2.attr.ParameterAttribute | None</em>) – Attributes to tune the learnable bias of
projection of the input.</li>
projection of the input.</li>
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttributeNone</em>) – Attributes to tune the final output of the gated unit,
<li><strong>layer_attr</strong> (<em>paddle.v2.attr.ExtraAttribute | None</em>) – Attributes to tune the final output of the gated unit,
for example, error clipping threshold, dropout and so on. See
for example, error clipping threshold, dropout and so on. See
paddle.v2.attr.ExtraAttribute for more details.</li>
paddle.v2.attr.ExtraAttribute for more details.</li>