# tensorplay.fft.fft

Source: https://www.tensorplay.cn/docs/generated/tensorplay.fft.fft.html

# tensorplay.fft.fft

tensorplay.fft.fft(input, n=None, dim=-1, norm=None)[[source]](../_modules/tensorplay/fft.html#fft)

Computes the one-dimensional discrete Fourier transform.

Parameters:

- input ( Tensor ) – the input tensor

- n ([int](https://docs.python.org/3/library/functions.html#int) , optional ) – signal length; zero-pads/truncates dim

- dim ([int](https://docs.python.org/3/library/functions.html#int) , optional ) – the dimension to transform. Default: -1

- norm ([str](https://docs.python.org/3/library/stdtypes.html#str) , optional ) – "backward" , "forward" or "ortho" . Default: None (= "backward" )
