• Fast Fourier transform.

    Computes the 1-dimensional discrete Fourier transform over the inner-most dimension of input.

    const real = tf.tensor1d([1, 2, 3]);
    const imag = tf.tensor1d([1, 2, 3]);
    const x = tf.complex(real, imag);

    x.fft().print(); // tf.spectral.fft(x).print();

    Parameters

    • input: Tensor<Rank>

      The complex input to compute an fft over.

    Returns Tensor

    Doc

Generated using TypeDoc