未验证 提交 04aa80e6 编写于 作者: 张春乔 提交者: GitHub

Fix some en docs (#49513)

上级 77e432ee
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册