Hi, I’m performing a periodic/circular convolution using both the spatial convolution (F.conv2d) and using the frequency domain multiplication (torch.rfft and torch.irfft). The issue is that both methods yield different results (frequency domain one is wrong).
I have the detailed code and results described in stackoverflow 12.
It would be much appreciated if someone could help me realize what is wrong.
Kind regards