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
{{ message }}
This repository was archived by the owner on Dec 29, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 29, 2025. It is now read-only.
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.
Activity
pzimbrod commentedon Sep 1, 2021
This problem is mentioned in FluxML/Zygote.jl#899 and subsequently JuliaMath/FFTW.jl#182. In some implementations of
FFTW.jltheregionfield 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.
pzimbrod commentedon Sep 1, 2021
Apparently, you can use
plan_brfftinstead for the inverse and scale afterwards:pzimbrod commentedon Sep 17, 2021
Another workaround could also be to just define custom adjoints for
Zygote, as partially discussed here. That will probably require some serious fiddling, though.