by AndrewGYork · 5y ago · 0 comments
"Do we ever benefit from explicitly putting Fourier layers into our models?"
Has a simple, partial answer here:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.l...
"...multiplying a vector by the matrix returned by dft is mathematically equivalent to (but much less efficient than) the calculation performed by scipy.fft.fft."
fft-as-a-matrix-multiply is much slower to compute than a standard fft, especially on large input.
You wouldn't want to use an FFT for most CNNs anyway because the kernels have very small support. Convolution with them is O(n) in the spatial domain as long as you recognize the sparsity.