Rate this Page

Function torch::fft::irfftn#

Function Documentation#

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

Computes the inverse of torch.fft.rfftn.

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

Example:

auto t = torch::randn({128, 128}, dtype=kComplexDouble);
torch::fft::irfftn(t);