提交 1b6a54e2 编写于 作者: P peterzhang2029

fix error for annotation

上级 f07a226a
...@@ -3592,10 +3592,9 @@ def lstm_step_layer(input, ...@@ -3592,10 +3592,9 @@ def lstm_step_layer(input,
:type gate_act: BaseActivation :type gate_act: BaseActivation
:param state_act: State Activation Type. TanhActivation is the default. :param state_act: State Activation Type. TanhActivation is the default.
:type state_act: BaseActivation :type state_act: BaseActivation
:param bias_attr: The bias attribute. If the parameter is set to False or an object :param bias_attr: The bias attribute. If the parameter is set to
whose type is not ParameterAttribute, no bias is defined. If the True or None, the bias is initialized to zero.
parameter is set to True, the bias is initialized to zero. :type bias_attr: ParameterAttribute | None | True
:type bias_attr: ParameterAttribute | None | bool | Any
:param layer_attr: layer's extra attribute. :param layer_attr: layer's extra attribute.
:type layer_attr: ExtraLayerAttribute :type layer_attr: ExtraLayerAttribute
:return: LayerOutput object. :return: LayerOutput object.
......
...@@ -698,14 +698,16 @@ def lstmemory_unit(input, ...@@ -698,14 +698,16 @@ def lstmemory_unit(input,
:param state_act: state activiation type of lstm. :param state_act: state activiation type of lstm.
:type state_act: BaseActivation :type state_act: BaseActivation
:param input_proj_bias_attr: bias attribute for input to hidden projection. :param input_proj_bias_attr: bias attribute for input to hidden projection.
False means no bias, None means default bias. False or None means no bias. If the parameter is set to True,
:type input_proj_bias_attr: ParameterAttribute|False|None the bias is initialized to zero.
:type input_proj_bias_attr: ParameterAttribute|bool|None
:param input_proj_layer_attr: extra layer attribute for input to hidden :param input_proj_layer_attr: extra layer attribute for input to hidden
projection of the LSTM unit, such as dropout, error clipping. projection of the LSTM unit, such as dropout, error clipping.
:type input_proj_layer_attr: ExtraLayerAttribute :type input_proj_layer_attr: ExtraLayerAttribute
:param lstm_bias_attr: bias parameter attribute of lstm layer. :param lstm_bias_attr: bias parameter attribute of lstm layer.
False means no bias, None means default bias. If the parameter is set to True or None,
:type lstm_bias_attr: ParameterAttribute|False|None the bias is initialized to zero.
:type lstm_bias_attr: ParameterAttribute|True|None
:param lstm_layer_attr: extra attribute of lstm layer. :param lstm_layer_attr: extra attribute of lstm layer.
:type lstm_layer_attr: ExtraLayerAttribute :type lstm_layer_attr: ExtraLayerAttribute
:return: lstmemory unit name. :return: lstmemory unit name.
...@@ -805,11 +807,13 @@ def lstmemory_group(input, ...@@ -805,11 +807,13 @@ def lstmemory_group(input,
:param state_act: state activiation type of lstm. :param state_act: state activiation type of lstm.
:type state_act: BaseActivation :type state_act: BaseActivation
:param lstm_bias_attr: bias parameter attribute of lstm layer. :param lstm_bias_attr: bias parameter attribute of lstm layer.
False means no bias, None means default bias. If the parameter is set to True or None, the bias is
:type lstm_bias_attr: ParameterAttribute|False|None initialized to zero.
:type lstm_bias_attr: ParameterAttribute|True|None
:param input_proj_bias_attr: bias attribute for input to hidden projection. :param input_proj_bias_attr: bias attribute for input to hidden projection.
False means no bias, None means default bias. False or None means no bias. If the parameter is set to True,
:type input_proj_bias_attr: ParameterAttribute|False|None the bias is initialized to zero.
:type input_proj_bias_attr: ParameterAttribute|bool|None
:param input_proj_layer_attr: extra layer attribute for input to hidden :param input_proj_layer_attr: extra layer attribute for input to hidden
projection of the LSTM unit, such as dropout, error clipping. projection of the LSTM unit, such as dropout, error clipping.
:type input_proj_layer_attr: ExtraLayerAttribute :type input_proj_layer_attr: ExtraLayerAttribute
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册