Browse Source

fix code docs

tags/v1.3.0
huangmengxi 5 years ago
parent
commit
9258081a45
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