mindspore/docs/api/api_python/ops/mindspore.ops.func_real.rst

16 lines
377 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.real
===================
.. py:function:: mindspore.ops.real(x)
返回输入Tensor的实数部分。如果输入是实数则返回值与输入值相同。
参数:
- **x** (Tensor) - 要计算的输入Tensor。
返回:
Tensorshape与输入 `x` 相同。
异常:
- **TypeError** - 如果 `x` 不是Tensor。