Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhupengyang committed Nov 12, 2020
1 parent 32bc546 commit dbf013a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions python/paddle/fluid/layers/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -9747,18 +9747,18 @@ def prelu(x, mode, param_attr=None, name=None):
channel: Elements in same channel share same alpha.
element: All elements do not share alpha. Each element has its own alpha.

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

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

Examples:

Expand Down
8 changes: 4 additions & 4 deletions python/paddle/tensor/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def ones_like(x, dtype=None, name=None):
Raise:
TypeError: If ``dtype`` is not None and is not bool, float16, float32,
float64, int32 or int64.
float64, int32 or int64.
Examples:
.. code-block:: python
Expand Down Expand Up @@ -395,7 +395,7 @@ def zeros_like(x, dtype=None, name=None):
Raise:
TypeError: If ``dtype`` is not None and is not bool, float16, float32,
float64, int32 or int64.
float64, int32 or int64.
Examples:
.. code-block:: python
Expand Down Expand Up @@ -539,8 +539,8 @@ def arange(start=0, end=None, step=1, dtype=None, name=None):
Returns:
Tensor: A 1-D Tensor with values from the interval [``start``, ``end``)
taken with common difference ``step`` beginning from ``start``. Its
data type is set by ``dtype``.
taken with common difference ``step`` beginning from ``start``. Its
data type is set by ``dtype``.
Raises:
TypeError: If ``dtype`` is not int32, int64, float32, float64.
Expand Down

0 comments on commit dbf013a

Please sign in to comment.