Skip to content

Commit 4193ae0

Browse files
authored
fix bugs test=develop (#28158)
1 parent dc53ba8 commit 4193ae0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

python/paddle/tensor/math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ def max(x, axis=None, keepdim=False, name=None):
11001100
float64, int32, int64.
11011101
axis(list|int, optional): The axis along which the maximum is computed.
11021102
If :attr:`None`, compute the maximum over all elements of
1103-
`x` and return a Tensor variable with a single element,
1103+
`x` and return a Tensor variable with a single element,
11041104
otherwise must be in the range :math:`[-x.ndim(x), x.ndim(x))`.
11051105
If :math:`axis[i] < 0`, the axis to reduce is :math:`x.ndim + axis[i]`.
11061106
keepdim(bool, optional): Whether to reserve the reduced dimension in the

python/paddle/tensor/random.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ def uniform(shape, dtype=None, min=-1.0, max=1.0, seed=0, name=None):
380380
distribution in the range [``min``, ``max``), with ``shape`` and ``dtype``.
381381
382382
Examples:
383+
383384
::
385+
384386
Input:
385387
shape = [1, 2]
386388
Output:

python/paddle/tensor/search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def argsort(x, axis=-1, descending=False, name=None):
6262
and with data type int64).
6363
6464
Examples:
65+
6566
.. code-block:: python
6667
6768
import paddle
@@ -359,6 +360,7 @@ def nonzero(x, as_tuple=False):
359360
360361
.. code-block:: python
361362
363+
362364
import paddle
363365
364366
x1 = paddle.to_tensor([[1.0, 0.0, 0.0],

0 commit comments

Comments
 (0)