@@ -3649,9 +3649,10 @@ def gru_step_layer(input,
3649
3649
:param name: The name of this layer. It is optional.
3650
3650
:param gate_act: Activation type of this layer's two gates. Default is Sigmoid.
3651
3651
:type gate_act: BaseActivation
3652
- :param bias_attr: The bias attribute. If the parameter is set to False or an object
3653
- whose type is not ParameterAttribute, no bias is defined. If the
3654
- parameter is set to True, the bias is initialized to zero.
3652
+ :param bias_attr: The parameter attribute for bias. If this parameter is set to
3653
+ False or an object whose type is not ParameterAttribute, no bias
3654
+ is defined. If this parameter is set to True,
3655
+ the bias is initialized to zero.
3655
3656
:type bias_attr: ParameterAttribute | None | bool | Any
3656
3657
:param param_attr: the parameter_attribute for transforming the output_mem
3657
3658
from previous step.
@@ -3711,9 +3712,10 @@ def gru_step_naive_layer(input,
3711
3712
:type act: BaseActivation
3712
3713
:param gate_act: Activation type of this layer's two gates. Default is Sigmoid.
3713
3714
:type gate_act: BaseActivation
3714
- :param bias_attr: The bias attribute. If the parameter is set to False or an object
3715
- whose type is not ParameterAttribute, no bias is defined. If the
3716
- parameter is set to True, the bias is initialized to zero.
3715
+ :param bias_attr: The parameter attribute for bias. If this parameter is set to
3716
+ False or an object whose type is not ParameterAttribute, no bias
3717
+ is defined. If this parameter is set to True,
3718
+ the bias is initialized to zero.
3717
3719
:type bias_attr: ParameterAttribute | None | bool | Any
3718
3720
:param param_attr:
3719
3721
:param layer_attr:
@@ -3843,9 +3845,10 @@ def recurrent_layer(input,
3843
3845
:type input: LayerOutput
3844
3846
:param act: Activation type. TanhActivation is the default.
3845
3847
:type act: BaseActivation
3846
- :param bias_attr: The bias attribute. If the parameter is set to False or an object
3847
- whose type is not ParameterAttribute, no bias is defined. If the
3848
- parameter is set to True, the bias is initialized to zero.
3848
+ :param bias_attr: The parameter attribute for bias. If this parameter is set to
3849
+ False or an object whose type is not ParameterAttribute,
3850
+ no bias is defined. If the parameter is set to True,
3851
+ the bias is initialized to zero.
3849
3852
:type bias_attr: ParameterAttribute | None | bool | Any
3850
3853
:param param_attr: parameter attribute.
3851
3854
:type param_attr: ParameterAttribute
@@ -4835,9 +4838,10 @@ def tensor_layer(a,
4835
4838
:type act: BaseActivation
4836
4839
:param param_attr: The Parameter Attribute.
4837
4840
:type param_attr: ParameterAttribute
4838
- :param bias_attr: The bias attribute. If the parameter is set to False or an object
4839
- whose type is not ParameterAttribute, no bias is defined. If the
4840
- parameter is set to True, the bias is initialized to zero.
4841
+ :param bias_attr: The parameter attribute for bias. If this parameter is set to
4842
+ False or an object whose type is not ParameterAttribute,
4843
+ no bias is defined. If this parameter is set to True,
4844
+ the bias is initialized to zero.
4841
4845
:type bias_attr: ParameterAttribute | None | bool | Any
4842
4846
:param layer_attr: Extra Layer config.
4843
4847
:type layer_attr: ExtraLayerAttribute | None
@@ -4899,9 +4903,10 @@ def selective_fc_layer(input,
4899
4903
:type act: BaseActivation
4900
4904
:param param_attr: The Parameter Attribute.
4901
4905
:type param_attr: ParameterAttribute
4902
- :param bias_attr: The bias attribute. If the parameter is set to False or an object
4903
- whose type is not ParameterAttribute, no bias is defined. If the
4904
- parameter is set to True, the bias is initialized to zero.
4906
+ :param bias_attr: The parameter attribute for bias. If this parameter is set to
4907
+ False or an object whose type is not ParameterAttribute,
4908
+ no bias is defined. If this parameter is set to True,
4909
+ the bias is initialized to zero.
4905
4910
:type bias_attr: ParameterAttribute | None | bool | Any
4906
4911
:param layer_attr: Extra Layer config.
4907
4912
:type layer_attr: ExtraLayerAttribute | None
@@ -5584,10 +5589,10 @@ def nce_layer(input,
5584
5589
to the num_classes. Each member of the list defines
5585
5590
the probability of a class given input x.
5586
5591
:type neg_distribution: list | tuple | collections.Sequence | None
5587
- :param bias_attr: The attribute for bias. If this parameter is set False or
5588
- any object whose type is not ParameterAttribute, no bias
5589
- is added . If this parameter is set True, the bias is
5590
- initialized to zero.
5592
+ :param bias_attr: The parameter attribute for bias. If this parameter is set to
5593
+ False or an object whose type is not ParameterAttribute,
5594
+ no bias is defined . If this parameter is set to True,
5595
+ the bias is initialized to zero.
5591
5596
:type bias_attr: ParameterAttribute | None | bool | Any
5592
5597
:param layer_attr: Extra Layer Attribute.
5593
5598
:type layer_attr: ExtraLayerAttribute
@@ -6497,19 +6502,19 @@ def gated_unit_layer(input,
6497
6502
:param gate_param_attr: The parameter attribute of the gate. See ParameterAttribute
6498
6503
for details.
6499
6504
:type gate_param_attr: ParameterAttribute
6500
- :param gate_bias_attr: The bias attribute of the gate. If the parameter is set to False or
6505
+ :param gate_bias_attr: The bias attribute of the gate. If this parameter is set to False or
6501
6506
an object whose type is not ParameterAttribute, no bias is defined.
6502
- If the parameter is set to True, the bias is initialized to zero.
6507
+ If this parameter is set to True, the bias is initialized to zero.
6503
6508
:type gate_bias_attr: ParameterAttribute | bool | None | Any
6504
6509
:param inproj_attr: Extra layer attributes of the projection. See ExtraLayerAttribute for
6505
6510
details.
6506
6511
:type inproj_attr: ExtraLayerAttribute | None
6507
6512
:param inproj_param_attr: The parameter attribute of the projection. See ParameterAttribute
6508
6513
for details.
6509
6514
:type inproj_param_attr: ParameterAttribute
6510
- :param inproj_bias_attr: The bias attribute of the projection. If the parameter is set to False
6515
+ :param inproj_bias_attr: The bias attribute of the projection. If this parameter is set to False
6511
6516
or an object whose type is not ParameterAttribute, no bias is defined.
6512
- If the parameter is set to True, the bias is initialized to zero.
6517
+ If this parameter is set to True, the bias is initialized to zero.
6513
6518
:type inproj_bias_attr: ParameterAttribute | bool | None | Any
6514
6519
:param layer_attr: Extra layer attribute of the product. See ExtraLayerAttribute for
6515
6520
details.
0 commit comments