Solved by sleepyo in post #3 
              
              
                hi @ptrblck , Thanks, I already solved it, turns out I only had to add the dim to the ifft2! 
torch.fft.ifft2(
        torch.multiply(
            torch.fft.ifftshift(1.0 - _filter), torch.fft.fft2(arr, dim=axes)
        ),
        dim=axes,
    )