From 04aa80e65471d795f024da1c02784e3379a9c8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=98=A5=E4=B9=94?= <83450930+Liyulingyue@users.noreply.github.com> Date: Wed, 4 Jan 2023 14:52:34 +0800 Subject: [PATCH] Fix some en docs (#49513) --- python/paddle/tensor/manipulation.py | 1 - python/paddle/tensor/search.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/tensor/manipulation.py b/python/paddle/tensor/manipulation.py index 842deaac99..a4f1dc1fb4 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 0aa373593d..8c0e912ac8 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. -- GitLab