-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pytorch FFT changes #3
Comments
Yes, all usage of |
Pytorch even supports complex numbers natively now, so it looks like a lot of operations could be simplified now. I will try this out as well. |
I think I've done the switch to complex numbers... at least for ptychography. I'm in the testing phase now. The master branch on my fork has the simple FFT conversion, while my dev is (I think) almost fully converted to complex numbers, and works. This generally gives me a pretty decent speed boost as well. |
Thanks @tcpekin. If you would like to, please feel free to submit a pull request. |
Starting in Pytorch 1.8,
torch.fft
is a module and not a function. So the FFT calls are now similar to that for numpy.See:
https://pytorch.org/blog/the-torch.fft-module-accelerated-fast-fourier-transforms-with-autograd-in-pyTorch/
I think the "adorym/adorym/wrappers.py" is the only file affected. Anywhere else?
The text was updated successfully, but these errors were encountered: