torch.fft.ifftshift¶
- torch.fft.ifftshift(input, dim=None) 张量¶
反向的
fftshift()。- Parameters
示例
>>> f = torch.fft.fftfreq(5) >>> f 张量([ 0.0000, 0.2000, 0.4000, -0.4000, -0.2000])
通过
fftshift()和ifftshift()的往返操作得到相同的结果:>>> shifted = torch.fft.fftshift(f) >>> torch.fft.ifftshift(shifted) tensor([ 0.0000, 0.2000, 0.4000, -0.4000, -0.2000])