Function torch::fft::ifftshift#
Defined in File fft.h
Function Documentation#
-
inline Tensor torch::fft::ifftshift(const Tensor &x, at::OptionalIntArrayRef dim = std::nullopt)#
Inverse of torch.fft.fftshift.
See https://pytorch.org/docs/main/fft.html#torch.fft.ifftshift
Example:
auto x = torch::randn({127, 4}); auto shift = torch::fft::fftshift(x) auto unshift = torch::fft::ifftshift(shift); assert(torch::allclose(x, unshift));