Skip to content

Commit dbf013a

Browse files
committed
fix
1 parent 32bc546 commit dbf013a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9747,18 +9747,18 @@ def prelu(x, mode, param_attr=None, name=None):
97479747
channel: Elements in same channel share same alpha.
97489748
element: All elements do not share alpha. Each element has its own alpha.
97499749

9750-
Args:
9750+
Parameters:
97519751
x (Tensor): The input Tensor or LoDTensor with data type float32.
97529752
mode (str): The mode for weight sharing.
97539753
param_attr(ParamAttr|None): The parameter attribute for the learnable
9754-
weight (alpha), it can be create by ParamAttr. None by default.
9755-
For detailed information, please refer to :ref:`api_fluid_ParamAttr`.
9754+
weight (alpha), it can be create by ParamAttr. None by default.
9755+
For detailed information, please refer to :ref:`api_fluid_ParamAttr`.
97569756
name(str|None): For detailed information, please refer
9757-
to :ref:`api_guide_Name`. Usually name is no need to set and
9758-
None by default.
9757+
to :ref:`api_guide_Name`. Usually name is no need to set and
9758+
None by default.
97599759

97609760
Returns:
9761-
A tensor or LoDTensor with the same shape as x. The data type is float32.
9761+
Tensor: A tensor with the same shape and data type as x.
97629762

97639763
Examples:
97649764

python/paddle/tensor/creation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def ones_like(x, dtype=None, name=None):
320320
321321
Raise:
322322
TypeError: If ``dtype`` is not None and is not bool, float16, float32,
323-
float64, int32 or int64.
323+
float64, int32 or int64.
324324
325325
Examples:
326326
.. code-block:: python
@@ -395,7 +395,7 @@ def zeros_like(x, dtype=None, name=None):
395395
396396
Raise:
397397
TypeError: If ``dtype`` is not None and is not bool, float16, float32,
398-
float64, int32 or int64.
398+
float64, int32 or int64.
399399
400400
Examples:
401401
.. code-block:: python
@@ -539,8 +539,8 @@ def arange(start=0, end=None, step=1, dtype=None, name=None):
539539
540540
Returns:
541541
Tensor: A 1-D Tensor with values from the interval [``start``, ``end``)
542-
taken with common difference ``step`` beginning from ``start``. Its
543-
data type is set by ``dtype``.
542+
taken with common difference ``step`` beginning from ``start``. Its
543+
data type is set by ``dtype``.
544544
545545
Raises:
546546
TypeError: If ``dtype`` is not int32, int64, float32, float64.

0 commit comments

Comments
 (0)