From f678e395fcdd158e4ab10394f6699e6cc005ff44 Mon Sep 17 00:00:00 2001 From: Sonder <55493212+AndSonder@users.noreply.github.com> Date: Fri, 20 Oct 2023 00:25:57 -0500 Subject: [PATCH] fix doc style --- python/paddle/tensor/manipulation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index 781f3b789615a..776497888ee8a 100644 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -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`. @@ -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") @@ -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")