forked from mindspore-Ecosystem/mindspore
!47061 修复ops.sinc文档数据类型的描述
Merge pull request !47061 from DavidFFFan/code_docs_add_rewrite_doc
This commit is contained in:
commit
bda22e1ed1
|
@ -14,7 +14,7 @@ mindspore.ops.sinc
|
|||
|
||||
返回:
|
||||
Tensor,shape与 `x` 相同。
|
||||
当输入类型为[uint8, uint8, uint16, int16, uint32, int32, uint64, int64, bool]时,返回值类型为float32。
|
||||
当输入类型为int或bool时,返回值类型为float32。
|
||||
否则,返回值类型与输入类型相同。
|
||||
|
||||
异常:
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue