mindspore.Tensor.imag

mindspore.Tensor.imag()[源代码]

详情请参考 mindspore.ops.imag()

支持平台:

GPU CPU

样例:

>>> import numpy as np
>>> import mindspore
>>> from mindspore import Tensor
>>> x = Tensor(np.asarray(np.complex(1.3 + 0.4j)), mindspore.complex64)
>>> output = x.imag()
>>> print(output)
0.4