Skip to content

Commit 0e6293b

Browse files
fix doc
1 parent a89a55d commit 0e6293b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

python/paddle/static/nn/common.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -3251,7 +3251,6 @@ def layer_norm(
32513251
name=None,
32523252
):
32533253
r"""
3254-
:api_attr: Static Graph
32553254
32563255
**Layer Normalization Layer**
32573256
@@ -3262,11 +3261,11 @@ def layer_norm(
32623261
32633262
.. math::
32643263
3265-
\\mu & = \\frac{1}{H}\\sum_{i=1}^{H} x_i
3264+
\mu & = \frac{1}{H}\sum_{i=1}^{H} x_i
32663265
3267-
\\sigma & = \\sqrt{\\frac{1}{H}\sum_{i=1}^{H}{(x_i - \\mu)^2} + \\epsilon}
3266+
\sigma & = \sqrt{\frac{1}{H}\sum_{i=1}^{H}{(x_i - \mu)^2} + \epsilon}
32683267
3269-
y & = f(\\frac{g}{\\sigma}(x - \\mu) + b)
3268+
y & = f(\frac{g}{\sigma}(x - \mu) + b)
32703269
32713270
- :math:`x`: the vector representation of the summed inputs to the neurons in that layer.
32723271
- :math:`H`: the number of hidden units in a layers
@@ -3297,7 +3296,7 @@ def layer_norm(
32973296
:attr:`bias_attr` is initialized as 0 if it is added. Default: None.
32983297
act(str, optional): Activation to be applied to the output of layer normalization.
32993298
Default: None.
3300-
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` .
3299+
name(str, optional): 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` .
33013300
33023301
Returns:
33033302
Tensor: ``Tensor`` indicating the normalized result, the data type is the same as ``input`` , and the return dimension is the same as ``input`` .

0 commit comments

Comments
 (0)