!47061 修复ops.sinc文档数据类型的描述

Merge pull request !47061 from DavidFFFan/code_docs_add_rewrite_doc
This commit is contained in:
i-robot 2022-12-22 04:08:51 +00:00 committed by Gitee
commit bda22e1ed1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 3 additions and 4 deletions

View File

@ -14,7 +14,7 @@ mindspore.ops.sinc
返回:
Tensorshape与 `x` 相同。
当输入类型为[uint8, uint8, uint16, int16, uint32, int32, uint64, int64, bool]返回值类型为float32。
当输入类型为int或bool返回值类型为float32。
否则,返回值类型与输入类型相同。
异常:

View File

@ -1839,8 +1839,7 @@ def sinc(x):
Returns:
Tensor, has the same shape as the `x`. The dtype of output is float32 when dtype of `x` is in
[uint8, uint8, uint16, int16, uint32, int32, uint64, int64, bool]. Otherwise output has the
same dtype as the `x`.
[int, bool]. Otherwise output has the same dtype as the `x`.
Raises:
TypeError: If `x` is not a Tensor.

View File

@ -3682,7 +3682,7 @@ class Sinc(Primitive):
Outputs:
Tensor, has the same shape as the `x`. The dtype of output is float32 when dtype of `x` is in
[uint8, uint8, uint16, int16, uint32, int32, uint64, int64, bool]. Otherwise output has the
[uint8, int8, uint16, int16, uint32, int32, uint64, int64, bool]. Otherwise output has the
same dtype as the `x`.
Raises: