update mindspore/python/mindspore/ops/function/math_func.py.

Signed-off-by: 王程浩 <wangchenghao14@huawei.com>
This commit is contained in:
王程浩 2023-02-21 06:23:07 +00:00 committed by Gitee
parent 985c48e543
commit fff572e708
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -2210,7 +2210,8 @@ def polar(abs, angle): # pylint: disable=redefined-outer-name
Must be one of the following types: float32, float64.
Returns:
Tensor, has the same shape and data type as `abs`.
Tensor, has the same shape as `abs`.If the inputs are float32,data type must be complex64.
If the inputs are float64,data type must be complex128.
Raises:
TypeError: If neither `abs` nor `angle` is a Tensor.