Shortcuts

Function torch::fft::rfftn

Function Documentation

inline Tensor torch::fft::rfftn(const Tensor &self, at::OptionalIntArrayRef s = c10::nullopt, at::OptionalIntArrayRef dim = c10::nullopt, c10::optional<c10::string_view> norm = c10::nullopt)

Computes the N dimensional FFT of real input with onesided Hermitian output.

See https://pytorch.org/docs/main/fft.html#torch.fft.rfftn

Example:

auto t = torch::randn({128, 128}, dtype=kDouble);
torch::fft::rfftn(t);

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