Skip to content

Commit

Permalink
fix bugs test=develop (#28125)
Browse files Browse the repository at this point in the history
  • Loading branch information
licanisme authored Oct 21, 2020
1 parent 5d70002 commit 085b961
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/tensor/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ def max(x, axis=None, keepdim=False, name=None):
float64, int32, int64.
axis(list|int, optional): The axis along which the maximum is computed.
If :attr:`None`, compute the maximum over all elements of
`x` and return a Tensor variable with a single element,
`x` and return a Tensor variable with a single element,
otherwise must be in the range :math:`[-x.ndim(x), x.ndim(x))`.
If :math:`axis[i] < 0`, the axis to reduce is :math:`x.ndim + axis[i]`.
keepdim(bool, optional): Whether to reserve the reduced dimension in the
Expand Down
2 changes: 2 additions & 0 deletions python/paddle/tensor/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ def uniform(shape, dtype=None, min=-1.0, max=1.0, seed=0, name=None):
distribution in the range [``min``, ``max``), with ``shape`` and ``dtype``.
Examples:
::
Input:
shape = [1, 2]
Output:
Expand Down
3 changes: 3 additions & 0 deletions python/paddle/tensor/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def argsort(x, axis=-1, descending=False, name=None):
and with data type int64).
Examples:
.. code-block:: python
import paddle
paddle.disable_static()
Expand Down Expand Up @@ -358,6 +360,7 @@ def nonzero(x, as_tuple=False):
.. code-block:: python
import paddle
x1 = paddle.to_tensor([[1.0, 0.0, 0.0],
Expand Down

0 comments on commit 085b961

Please sign in to comment.