Browse Source

fix numpy docs

tags/v1.5.0-rc1
wangrao124 4 years ago
parent
commit
afb65503e4
2 changed files with 5 additions and 5 deletions
  1. +2
    -2
      mindspore/numpy/array_creations.py
  2. +3
    -3
      mindspore/numpy/math_ops.py

+ 2
- 2
mindspore/numpy/array_creations.py View File

@@ -235,12 +235,12 @@ def copy_(a):

Args:
a (Union[int, float, bool, list, tuple, Tensor]): Input data, in any form that can
be converted to a `Tensor`. This includes Tensor, list, tuple and numbers.
be converted to a Tensor. This includes Tensor, list, tuple and numbers.

Returns:
Tensor, has the same data as `a`.

Raises:
Raises:
TypeError: If input `a` has type not specified above.
ValueError: If input `a` has different sizes at different dimensions.



+ 3
- 3
mindspore/numpy/math_ops.py View File

@@ -1444,14 +1444,14 @@ def amin(a, axis=None, keepdims=False, initial=None, where=True):
axes along which to operate. By default, flattened input is used. If
this is a tuple of ints, the minimum is selected over multiple axes,
instead of a single axis or all the axes as before.
keepdims (boolean, optional): defaults to False.
keepdims (bool, optional): defaults to False.
If this is set to True, the axes which are reduced are left in the
result as dimensions with size one. With this option, the result will
broadcast correctly against the input array.
initial (scalar, optional):
initial (Number, optional):
The maximum value of an output element. Must be present to allow
computation on empty slice.
where (boolean Tensor, optional): defaults to True.
where (bool Tensor, optional): defaults to True.
A boolean array which is broadcasted to match the dimensions of array,
and selects elements to include in the reduction. If non-default value
is passed, initial must also be provided.


Loading…
Cancel
Save