forked from mindspore-Ecosystem/mindspore
16 lines
377 B
ReStructuredText
16 lines
377 B
ReStructuredText
|
|
mindspore.ops.real
|
|||
|
|
===================
|
|||
|
|
|
|||
|
|
.. py:function:: mindspore.ops.real(x)
|
|||
|
|
|
|||
|
|
返回输入Tensor的实数部分。如果输入是实数,则返回值与输入值相同。
|
|||
|
|
|
|||
|
|
参数:
|
|||
|
|
- **x** (Tensor) - 要计算的输入Tensor。
|
|||
|
|
|
|||
|
|
返回:
|
|||
|
|
Tensor,shape与输入 `x` 相同。
|
|||
|
|
|
|||
|
|
异常:
|
|||
|
|
- **TypeError** - 如果 `x` 不是Tensor。
|