Shortcuts

Function torch::fft::fftn

Function Documentation

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

Computes the N dimensional fast Fourier transform over given dimensions.

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

Example:

auto t = torch::randn({128, 128}, dtype=kComplexDouble);
torch::fft::fftn(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