From 9258081a45c849630a3ddd68662f250b118675fa Mon Sep 17 00:00:00 2001 From: huangmengxi Date: Thu, 22 Apr 2021 19:16:30 +0800 Subject: [PATCH] fix code docs --- mindspore/numpy/math_ops.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mindspore/numpy/math_ops.py b/mindspore/numpy/math_ops.py index 241eefde45..78c539fb8d 100644 --- a/mindspore/numpy/math_ops.py +++ b/mindspore/numpy/math_ops.py @@ -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