You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for a great work! I tried to run the code with pytorch 1.8 but got an error AttributeError: module 'torch' has no attribute 'rfft'. Could you tell me how to fix it?
Thanks.
The text was updated successfully, but these errors were encountered:
I think it is due to the fact that the newest version of Pytorch now has a dedicated package named torch.fft and that indeed contains rfft. You can either replace torch.rfft(x, 2, onesided=False) by torch.fft.fft2(x) or downgrade your pytorch version to 1.7 or an older version.
Hello!
Thank you for a great work! I tried to run the code with pytorch 1.8 but got an error
AttributeError: module 'torch' has no attribute 'rfft'
. Could you tell me how to fix it?Thanks.
The text was updated successfully, but these errors were encountered: