Shortcuts

Function torch::fft::hfft2

Function Documentation

inline Tensor torch::fft::hfft2(const Tensor &self, at::OptionalIntArrayRef s = std::nullopt, IntArrayRef dim = {-2, -1}, std::optional<std::string_view> norm = std::nullopt)

Computes the 2-dimensional FFT of a Hermitian symmetric input signal.

The input is a onesided representation of the Hermitian symmetric time domain signal. See https://pytorch.org/docs/main/fft.html#torch.fft.hfft2.

Example:

auto t = torch::randn({128, 65}, torch::kComplexDouble);
auto T = torch::fft::hfft2(t, /*s=*&zwj;/{128, 128});
assert(T.is_floating_point() && T.numel() == 128 * 128);

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources