mindspore.ops.imag =================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.func_imag.rst :alt: 查看源文件 .. py:function:: mindspore.ops.imag(input) 返回包含输入Tensor的虚部。如果输入为实数,则返回零。 参数: - **input** (Tensor) - 要计算的输入Tensor。 返回: Tensor,shape与 `input` 相同。 异常: - **TypeError** - 如果 `input` 不是Tensor。