You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix api docs in RNN, Transformer, layer_norm, WeightNormParamAttr (#29235) (#29407)
* Fix api docs in RNN, Transformer, layer_norm, WeightNormParamAttr.
test=develop
* Fix api doc for print in label_smooth.
test=develop
* Update api docs according to review comments.
Add name argument in RNN back.
test=develop
input(Variable): A multi-dimension ``Tensor`` , and the data type is float32 or float64.
3430
+
input(Tensor): A multi-dimension ``Tensor`` , and the data type is float32 or float64.
3431
3431
scale(bool, optional): Whether to learn the adaptive gain :math:`g` after
3432
3432
normalization. Default: True.
3433
3433
shift(bool, optional): Whether to learn the adaptive bias :math:`b` after
@@ -3452,24 +3452,17 @@ def layer_norm(input,
3452
3452
name(str): The default value is None. Normally there is no need for user to set this property. For more information, please refer to :ref:`api_guide_Name` .
3453
3453
3454
3454
Returns:
3455
-
Variable: ``Tensor`` indicating the normalized result, the data type is the same as ``input`` , and the return dimension is the same as ``input`` .
3455
+
Tensor: ``Tensor`` indicating the normalized result, the data type is the same as ``input`` , and the return dimension is the same as ``input`` .
3456
3456
3457
3457
Examples:
3458
3458
3459
3459
.. code-block:: python
3460
3460
3461
-
import paddle.fluid as fluid
3462
-
import numpy as np
3463
3461
import paddle
3464
3462
paddle.enable_static()
3465
-
x = fluid.data(name='x', shape=[-1, 32, 32], dtype='float32')
0 commit comments