Browse Source

!15533 numpy-native fix docstrings

From: @jachua
Reviewed-by: @liangchenghui,@guoqi1024
Signed-off-by: @guoqi1024
pull/15533/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
668d079942
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      mindspore/numpy/math_ops.py

+ 7
- 4
mindspore/numpy/math_ops.py View File

@@ -2749,9 +2749,12 @@ def kron(a, b):
Computes the Kronecker product, a composite array made of blocks of the second
array scaled by the first.

Note:
Booleans are not supported.

Args:
a (Union[int, float, bool, list, tuple, Tensor]): input values.
b (Union[int, float, bool, list, tuple, Tensor]): input values.
a (Union[int, float, list, tuple, Tensor]): input values.
b (Union[int, float, list, tuple, Tensor]): input values.

Returns:
Tensor.
@@ -2807,8 +2810,8 @@ def cross(a, b, axisa=- 1, axisb=- 1, axisc=- 1, axis=None):
returned.

Args:
a (Union[int, float, bool, list, tuple, Tensor]): Components of the first vector(s).
b (Union[int, float, bool, list, tuple, Tensor]): Components of the second vector(s).
a (Union[list, tuple, Tensor]): Components of the first vector(s).
b (Union[list, tuple, Tensor]): Components of the second vector(s).
axisa (int, optional): Axis of `a` that defines the vector(s). By default, the last
axis.
axisb (int, optional): Axis of `b` that defines the vector(s). By default, the last


Loading…
Cancel
Save