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