Shortcuts

Function torch::fft::fftfreq(int64_t, double, const TensorOptions&)

Function Documentation

inline Tensor torch::fft::fftfreq(int64_t n, double d, const TensorOptions &options = {})

Computes the discrete Fourier Transform sample frequencies for a signal of size n.

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

Example:

auto frequencies = torch::fft::fftfreq(128, torch::kDouble);

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