Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with torch.rfft #4

Open
Hramchenko opened this issue May 4, 2021 · 2 comments
Open

Problem with torch.rfft #4

Hramchenko opened this issue May 4, 2021 · 2 comments

Comments

@Hramchenko
Copy link

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.

@teboli
Copy link
Owner

teboli commented May 4, 2021

Hi!

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.

Let me know if it works.

@Hramchenko
Copy link
Author

Thank you so much for your quick response.

Unfortunately, it didn't work. It seems that not only the package with fft has changed in pytorch, but also the signature of the function call :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants