complexPyTorch icon indicating copy to clipboard operation
complexPyTorch copied to clipboard

dropout need to set mask's device same as input Tensor!

Open XIronMan0220 opened this issue 2 years ago • 5 comments

XIronMan0220 avatar Aug 22 '22 08:08 XIronMan0220

Meet the same problem!

... line 106, in complex_dropout
    return mask*input
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

wootommy avatar Sep 17 '22 15:09 wootommy

complexPyTorch is obsolete and not maintained as since version 1.7 PyTorch natively supports complex numbers.

wavefrontshaping avatar Sep 19 '22 07:09 wavefrontshaping

complexPyTorch is obsolete and not maintained as since version 1.7 PyTorch natively supports complex numbers.

But many modules in PyTorch is still not support complex numbers.

XIronMan0220 avatar Sep 27 '22 05:09 XIronMan0220

My bad, I have to admit I did not touch PyTorch for a while, I assume the integration of complex numbers meant all was implemented. What is missing?

wavefrontshaping avatar Sep 28 '22 11:09 wavefrontshaping

Should be solved now (commit 7f611aa5760bc86f43e11721a1f8d9dc09ef699a)

wavefrontshaping avatar Sep 28 '22 11:09 wavefrontshaping