From fff572e7084f6cdd07bbafb016b4da73f7e671f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A8=8B=E6=B5=A9?= Date: Tue, 21 Feb 2023 06:23:07 +0000 Subject: [PATCH] update mindspore/python/mindspore/ops/function/math_func.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王程浩 --- mindspore/python/mindspore/ops/function/math_func.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindspore/python/mindspore/ops/function/math_func.py b/mindspore/python/mindspore/ops/function/math_func.py index c7f1d80674d..2441a0c24f8 100644 --- a/mindspore/python/mindspore/ops/function/math_func.py +++ b/mindspore/python/mindspore/ops/function/math_func.py @@ -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.