complexPyTorch
complexPyTorch copied to clipboard
dropout need to set mask's device same as input Tensor!
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!
complexPyTorch is obsolete and not maintained as since version 1.7 PyTorch natively supports complex numbers.
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.
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?
Should be solved now (commit 7f611aa5760bc86f43e11721a1f8d9dc09ef699a)