Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 512 Bytes

imag_cn.rst

File metadata and controls

23 lines (15 loc) · 512 Bytes

imag

.. py:function:: paddle.imag(x, name=None)

返回一个包含输入复数 Tensor 的虚部数值的新 Tensor。

参数

  • x (Tensor) - 输入的 Tensor,其数据类型可以为 complex64 或 complex128。
  • name (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

返回

Tensor,包含原复数 Tensor 的虚部数值。

代码示例

COPY-FROM: paddle.imag