模型开发接口
推理部署接口
API 相关说明
Returns a new tensor containing imaginary values of the complex tensor.
complex (Tensor) –
Tensor
the imaginary part of the complex tensor
实际案例
>>> x=Tensor([0.3100+0.3553j, -0.5445-0.7896j, -1.6492-0.0633j, -0.0638-0.8119j], dtype=np.complex64)
>>> F.imag(x) Tensor([[ 0.3553] [-0.7896] [-0.0633] [-0.8119]], device=xpux:0)
上一页
megengine.functional.real
下一页
megengine.functional.cross