Skip to content

Commit 94de229

Browse files
author
jerrywgz
committed
fix format in api doc, test=develop
1 parent 0e1b426 commit 94de229

File tree

1 file changed

+6
-6
lines changed
  • python/paddle/fluid/layers

1 file changed

+6
-6
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6904,13 +6904,13 @@ def prelu(x, mode, param_attr=None, name=None):
69046904
69056905
Args:
69066906
x (Variable): The input tensor.
6907-
param_attr(ParamAttr|None): The parameter attribute for the learnable
6908-
weight (alpha).
6907+
param_attr(ParamAttr|None): The parameter attribute for the learnable
6908+
weight (alpha).
69096909
mode (string): The mode for weight sharing. It supports all, channel
69106910
and element. all: all elements share same weight
69116911
channel:elements in a channel share same weight
69126912
element:each element has a weight
6913-
name(str|None): A name for this layer(optional). If set None, the layer
6913+
name(str|None): A name for this layer(optional). If set None, the layer
69146914
will be named automatically.
69156915
69166916
Returns:
@@ -6920,9 +6920,9 @@ def prelu(x, mode, param_attr=None, name=None):
69206920
69216921
.. code-block:: python
69226922
6923-
x = fluid.layers.data(name="x", shape=[10,10], dtype="float32")
6924-
mode = 'channel'
6925-
output = fluid.layers.prelu(x,mode)
6923+
x = fluid.layers.data(name="x", shape=[10,10], dtype="float32")
6924+
mode = 'channel'
6925+
output = fluid.layers.prelu(x,mode)
69266926
"""
69276927
helper = LayerHelper('prelu', **locals())
69286928
if mode not in ['all', 'channel', 'element']:

0 commit comments

Comments
 (0)