Skip to content

Commit

Permalink
fix doc style
Browse files Browse the repository at this point in the history
  • Loading branch information
AndSonder authored Oct 20, 2023
1 parent 2317773 commit f678e39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4567,11 +4567,11 @@ def masked_fill(x, mask, value, name=None):
Args:
x (Tensor) : The Destination Tensor. Supported data types are float,
double, int, int64_t,float16 and bfloat16.
double, int, int64_t,float16 and bfloat16.
mask (Tensor): The boolean tensor indicate the position to be filled.
The data type of mask must be bool.
value (Scalar or 0-D Tensor): The value used to fill the target tensor.
Supported data types are float, double, int, int64_t,float16 and bfloat16.
Supported data types are float, double, int, int64_t,float16 and bfloat16.
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`.
Expand All @@ -4580,6 +4580,7 @@ def masked_fill(x, mask, value, name=None):
Tensor, same dimention and dtype with x.
Examples:
.. code-block:: python
>>> # doctest: +REQUIRES(env:GPU)
>>> import paddle
>>> x = paddle.ones((3, 3), dtype="float32")
Expand Down Expand Up @@ -4610,6 +4611,7 @@ def masked_fill_(x, mask, value, name=None):
Examples:
.. code-block:: python
>>> # doctest: +REQUIRES(env:GPU)
>>> import paddle
>>> x = paddle.ones((3, 3), dtype="float32")
Expand Down

0 comments on commit f678e39

Please sign in to comment.