def step(input):
output = fc(input=layer,
size=1024,
- act=paddle.v2.Activation.Linear(),
+ act=paddle.v2.activation.Linear(),
bias_attr=False)
return output
@@ -1230,10 +1230,10 @@ output is \(o_t\), which name is ‘state’ a
state.size
.
input (paddle.v2.config_base.Layer) – input layer. \(Wx_t + Wh_{t-1}\)
state (paddle.v2.config_base.Layer) – State Layer. \(c_{t-1}\)
-
act (paddle.v2.Activation.Base) – Activation type. Default is tanh
-
gate_act (paddle.v2.Activation.Base) – Gate Activation Type. Default is sigmoid, and should
+act (paddle.v2.activation.Base) – Activation type. Default is tanh
+
gate_act (paddle.v2.activation.Base) – Gate Activation Type. Default is sigmoid, and should
be sigmoid only.
-
state_act (paddle.v2.Activation.Base) – State Activation Type. Default is sigmoid, and should
+state_act (paddle.v2.activation.Base) – State Activation Type. Default is sigmoid, and should
be sigmoid only.
bias_attr (paddle.v2.attr.ParameterAttribute) – Bias Attribute.
layer_attr (paddle.v2.attr.ExtraAttribute) – layer’s extra attribute.
@@ -1435,7 +1435,7 @@ Each inputs is a projection or operator.
size (int) – layer size.
input – inputs layer. It is an optional parameter. If set,
then this function will just return layer’s name.
-
act (paddle.v2.Activation.Base) – Activation Type.
+
act (paddle.v2.activation.Base) – Activation Type.
bias_attr (paddle.v2.attr.ParameterAttribute or None or bool) – The Bias Attribute. If no bias, then pass False or
something not type of paddle.v2.attr.ParameterAttribute. None will get a
default Bias.
@@ -1932,7 +1932,7 @@ Inputs can be list of paddle.v2.config_base.Layer or list of projection.
参数: |
- name (basestring) – Layer name.
- input (list|tuple|collections.Sequence) – input layers or projections
-- act (paddle.v2.Activation.Base) – Activation type.
+- act (paddle.v2.activation.Base) – Activation type.
- layer_attr (paddle.v2.attr.ExtraAttribute) – Extra Layer Attribute.
|
@@ -1976,7 +1976,7 @@ Inputs can be list of paddle.v2.config_base.Layer or list of projection.
name (basestring) – Layer name.
a (paddle.v2.config_base.Layer) – input sequence layer
b (paddle.v2.config_base.Layer) – input sequence layer
-act (paddle.v2.Activation.Base) – Activation type.
+act (paddle.v2.activation.Base) – Activation type.
layer_attr (paddle.v2.attr.ExtraAttribute) – Extra Layer Attribute.
bias_attr (paddle.v2.attr.ParameterAttribute or None or bool) – The Bias Attribute. If no bias, then pass False or
something not type of paddle.v2.attr.ParameterAttribute. None will get a
@@ -2209,7 +2209,7 @@ output sequence has T*M/N instances, the dimension of each instance is N.
input (paddle.v2.config_base.Layer) – Input layer.
reshape_size (int) – the size of reshaped sequence.
name (basestring) – Layer name.
-act (paddle.v2.Activation.Base) – Activation type.
+act (paddle.v2.activation.Base) – Activation type.
layer_attr (paddle.v2.attr.ExtraAttribute) – extra layer attributes.
bias_attr (paddle.v2.attr.ParameterAttribute or None or bool) – The Bias Attribute. If no bias, then pass False or
something not type of paddle.v2.attr.ParameterAttribute. None will get a
@@ -2243,7 +2243,7 @@ default Bias.
and \(f\) is activation function.
The example usage is:
addto = addto(input=[layer1, layer2],
- act=paddle.v2.Activation.Relu(),
+ act=paddle.v2.activation.Relu(),
bias_attr=False)
@@ -2265,7 +2265,7 @@ Please refer to dropout for details.
name (basestring) – Layer name.
input (paddle.v2.config_base.Layer|list|tuple) – Input layers. It could be a paddle.v2.config_base.Layer or list/tuple of
paddle.v2.config_base.Layer.
-act (paddle.v2.Activation.Base) – Activation Type, default is tanh.
+act (paddle.v2.activation.Base) – Activation Type, default is tanh.
bias_attr (paddle.v2.attr.ParameterAttribute|bool) – Bias attribute. If False, means no bias. None is default
bias.
layer_attr (paddle.v2.attr.ExtraAttribute) – Extra Layer attribute.
@@ -2567,7 +2567,7 @@ For example, each sample:
a (paddle.v2.config_base.Layer) – Input layer a.
b (paddle.v2.config_base.Layer) – input layer b.
size (int.) – the layer dimension.
-act (paddle.v2.Activation.Base) – Activation Type. Default is tanh.
+act (paddle.v2.activation.Base) – Activation Type. Default is tanh.
param_attr (paddle.v2.attr.ParameterAttribute) – The Parameter Attribute.
bias_attr (paddle.v2.attr.ParameterAttribute|None|Any) – The Bias Attribute. If no bias, then pass False or
something not type of paddle.v2.attr.ParameterAttribute. None will get a
@@ -3349,7 +3349,7 @@ A fast and simple algorithm for training neural probabilistic language models.
label (paddle.v2.config_base.Layer) – label layer
weight (paddle.v2.config_base.Layer) – weight layer, can be None(default)
num_classes (int) – number of classes.
-act (paddle.v2.Activation.Base) – Activation, default is Sigmoid.
+act (paddle.v2.activation.Base) – Activation, default is Sigmoid.
param_attr (paddle.v2.attr.ParameterAttribute) – The Parameter Attribute|list.
num_neg_samples (int) – number of negative samples. Default is 10.
neg_distribution (list|tuple|collections.Sequence|None) – The distribution for generating the random negative labels.
---|