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
This problem is mentioned in FluxML/Zygote.jl#899 and subsequently JuliaMath/FFTW.jl#182. In some implementations of FFTW.jl the region field of the struct plan is missing.
It would be plausible that the problem can be fixed by switching to the unscaled inverse transform and do the scaling manually afterwards.
Another workaround could also be to just define custom adjoints for Zygote, as partially discussed here. That will probably require some serious fiddling, though.
When taking the jacobian of a sample FFT-Pipeline,
Zygote
complains about missing fields in the corresponding FFT Plan:However, doing the FFT in-place, the error vanishes:
This is an issue since we're doing the FFT and its inverse a lot of times, so the speed gain from using pre-planned FFTs shoud be quite considerable.
The text was updated successfully, but these errors were encountered: