Skip to content

Commit 8b56e79

Browse files
[Docathon][Fix System Message No.1、26] (PaddlePaddle#58503)
* [Docathon][Fix System Message No.1] * [Docathon][Fix System Message No.26]
1 parent dc0c931 commit 8b56e79

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

python/paddle/static/nn/common.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -447,17 +447,17 @@ def instance_norm(
447447
epsilon(float, Default 1e-05): A value added to the denominator for
448448
numerical stability. Default is 1e-5.
449449
param_attr(ParamAttr|None|bool, optional): The parameter attribute for Parameter `scale`
450-
of instance_norm. If it is set to None or one attribute of ParamAttr, instance_norm
451-
will create ParamAttr as param_attr, the name of scale can be set in ParamAttr.
452-
If the Initializer of the param_attr is not set, the parameter is initialized
453-
with Xavier. If the param_attr is set to False, instance_norm will not create param_attr.
454-
Default: None.
450+
of instance_norm. If it is set to None or one attribute of ParamAttr, instance_norm
451+
will create ParamAttr as param_attr, the name of scale can be set in ParamAttr.
452+
If the Initializer of the param_attr is not set, the parameter is initialized
453+
with Xavier. If the param_attr is set to False, instance_norm will not create param_attr.
454+
Default: None.
455455
bias_attr(ParamAttr|None|bool, optional): The parameter attribute for the bias of instance_norm.
456-
If it is set to None or one attribute of ParamAttr, instance_norm
457-
will create ParamAttr as bias_attr, the name of bias can be set in ParamAttr.
458-
If the Initializer of the bias_attr is not set, the bias is initialized zero.
459-
If the bias_attr is set to False, instance_norm will not create bias_attr.
460-
Default: None.
456+
If it is set to None or one attribute of ParamAttr, instance_norm
457+
will create ParamAttr as bias_attr, the name of bias can be set in ParamAttr.
458+
If the Initializer of the bias_attr is not set, the bias is initialized zero.
459+
If the bias_attr is set to False, instance_norm will not create bias_attr.
460+
Default: None.
461461
name(string, Default None): A name for this layer(optional). If set None, the layer
462462
will be named automatically.
463463
@@ -2854,14 +2854,14 @@ def batch_norm(
28542854
numerical stability. Default is 1e-5.
28552855
param_attr(ParamAttr|None): The parameter attribute for Parameter `scale`
28562856
of batch_norm. If it is set to None or one attribute of ParamAttr, batch_norm
2857-
will create ParamAttr as param_attr, the name of scale can be set in ParamAttr.
2858-
If the Initializer of the param_attr is not set, the parameter is initialized
2859-
with Xavier. Default: None.
2857+
will create ParamAttr as param_attr, the name of scale can be set in ParamAttr.
2858+
If the Initializer of the param_attr is not set, the parameter is initialized
2859+
with Xavier. Default: None.
28602860
bias_attr(ParamAttr|None): The parameter attribute for the bias of batch_norm.
28612861
If it is set to None or one attribute of ParamAttr, batch_norm
2862-
will create ParamAttr as bias_attr, the name of bias can be set in ParamAttr.
2863-
If the Initializer of the bias_attr is not set, the bias is initialized zero.
2864-
Default: None.
2862+
will create ParamAttr as bias_attr, the name of bias can be set in ParamAttr.
2863+
If the Initializer of the bias_attr is not set, the bias is initialized zero.
2864+
Default: None.
28652865
data_layout (str, optional): Specify the data format of the input, and the data format of the output
28662866
will be consistent with that of the input. An optional string from: `"NCHW"`, `"NHWC"`.
28672867
The default is `"NCHW"`. When it is `"NCHW"`, the data is stored in the order of:

0 commit comments

Comments
 (0)