Closed cassidylaidlaw closed 2 years ago
I believe you can just replace torch.rfft
with torch.fft.rfft
I tried that, but it looks like the signatures have changed with the renaming and I couldn’t figure out the right parameters.
I see, could you try torch.fft.rfft2(torch.pow(orig - mean, 2))
?
Fixed in #9
Trying to run a Gabor attack with PyTorch 1.8 produces the following error:
It looks like PyTorch changed where the FFT functions are located; now they're under
torch.fft
. I would submit a PR to fix this myself but I don't know much about signal processing/FFTs.