Open abbasaqeel opened 3 years ago
In 1.7.0 it is renamed from torch.rfft
to torch.fft.rfft
.
Feel free to make changes and submit a PR
In 1.7.0 it is renamed from
torch.rfft
totorch.fft.rfft
. Feel free to make changes and submit a PR
i make change as this w1_f = torch.fft.rfft(w1, dim=2, norm='ortho') * self.freq_coeff
but the error is size of freq_coef is not same size of output from torch.fft.rfft @RalphMao
@Sibozhu
@RalphMao
@RalphMao @Sibozhu i replace this line w1_f = torch.rfft(w1, signal_ndim=2, normalized=True, onesided=True) self.freq_coeff with this w1_f = torch.view_as_real(torch.fft.rfft(w1, 2, norm= 'ortho')) self.freq_coeff but the new error is The size of tensor a (2) must match the size of tensor b (5) at non-singleton dimension 3
hi @RalphMao .. fourier_feature is not wotk with pytorch 1.7.0 because the function torch.rfft is removed
can you help my to edit your code to work with pytorch 1.7.0
thanks..... @Sibozhu .....