torch.fft.ifftshift
-
torch.fft.ifftshift(input, dim=None) → Tensor -
Обратное преобразование
fftshift().- Параметры:
Пример
>>> f = torch.fft.fftfreq(5) >>> f tensor([ 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])
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.fft.ifftshift.html