diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index 842deaac991a9c0ef006d21175e86e6c7b5767a4..a4f1dc1fb4477ef13e204d6446c4f3e1d95c0d8c 100644 --- a/python/paddle/tensor/manipulation.py +++ b/python/paddle/tensor/manipulation.py @@ -3336,7 +3336,6 @@ def expand(x, shape, name=None): Both the number of dimensions of ``x`` and the number of elements in ``shape`` should be less than or equal to 6. And the number of dimensions of ``x`` should be less than the number of elements in ``shape``. The dimension to expand must have a value 1. - Args: x (Tensor): The input Tensor, its data type is bool, float32, float64, int32 or int64. shape (list|tuple|Tensor): The result shape after expanding. The data type is int32. If shape is a list or tuple, all its elements diff --git a/python/paddle/tensor/search.py b/python/paddle/tensor/search.py index 0aa373593d29a1babc6c7cecce88eb1586df6f28..8c0e912ac8e3100cd2efdc2685303eaefc2ec85a 100755 --- a/python/paddle/tensor/search.py +++ b/python/paddle/tensor/search.py @@ -570,7 +570,7 @@ def where(condition, x=None, y=None, name=None): \end{cases}. Notes: - ``numpy.where(condition)`` is identical to ``paddle.nonzero(condition, as_tuple=True)``, please refer to :ref:`api_tensor_search_nonzero`. + ``numpy.where(condition)`` is identical to ``paddle.nonzero(condition, as_tuple=True)``, please refer to :ref:`api_paddle_nonzero`. Args: condition (Tensor): The condition to choose x or y. When True (nonzero), yield x, otherwise yield y.