Hi Xulin and Zhang!



 EsonJohn:

It seems that the torch.addcmul function could not be applied on complex tensors when operating on GPU.


Support for complex tensors in pytorch is a work in progress.  I find,
just by trying, that addcmul() does not work with complex gpu tensors
using pytorch version 1.6.0, but does work with a recent nightly build,
version 1.8.0.dev20201203.
If you’re just experimenting with complex tensors, you might want to
upgrade to a current (unstable) nightly build, but if you’re doing “real”
work, it might make sense to avoid complex tensors until support for
them becomes stable.
Best.
K. Frank