Tensorflow.js tf.spectral.ifft () Function Last Updated : 10 May, 2021 Comments Improve Suggest changes Like Article Like Report Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.spectral.ifft() function is used for IFFT(Inverse Fast Fourier transform) i.e. it computes the inverse 1-dimensional DFT(discrete Fourier transform) over the inner-most dimension of the input. Syntax: tf.spectral.ifft(input)Parameters: input: The complex input on which an ifft is being performed.Return Value: It returns the result for the computation of the inverse 1-dimensional DFT(discrete Fourier transform) over the inner-most dimension of the input. Example 1: JavaScript // Importing the tensorflow.js library import * as tf from "@tensorflow/tfjs" // Initializing a real and imaginary 1D input values const real = tf.tensor1d([1, 5]); const imag = tf.tensor1d([2, 4]); const x = tf.complex(real, imag); // Calling the .spectral.ifft() function // over the input parameter value x tf.spectral.ifft(x).print(); Output: Tensor [3 + 3j, -2 + -1j]Example 2: JavaScript // Importing the tensorflow library import * as tf from "@tensorflow/tfjs" // Using a real and imaginary 1D input values as the // parameter for the .complex() function const x = tf.complex(tf.tensor1d([5, 10, 15, 20]), tf.tensor1d([1, 2, 3, 4])); // Calling the .spectral.ifft() function // over the input parameter value x tf.spectral.ifft(x).print(); Output: Tensor [12.5 + 2.5j, -2 + -3j, -2.5 + -0.5j, -3 + 2j] Reference: https://js.tensorflow.org/api/latest/#spectral.ifft Comment More infoAdvertise with us Next Article Tensorflow.js tf.spectral.ifft () Function K Kanchan_Ray Follow Improve Article Tags : JavaScript Web Technologies Tensorflow.js Similar Reads Tensorflow.js tf.spectral.irfft () Function Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.spectral.irfft() function is used for IRFFT(Inversed real value input Fast Fourier transform) i.e. it computes the 1-dimensiona 2 min read Tensorflow.js tf.spectral.rfft () Function Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.spectral.rfft() function is used for RFFT(real value input Fast Fourier transform) i.e. it computes the 1-dimensional DFT(Discr 1 min read Tensorflow.js tf.spectral.fft () Function Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.spectral.fft() function is used for FFT(Fast Fourier transform) i.e. it computes the specified 1-dimensional DFT(discrete Fouri 2 min read Tensorflow.js tf.scalar() Function Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The .scalar() function is used to create a scalar type of tensor means. A scalar is a zero-dimension array and is also called a rank-0 2 min read Tensorflow.js tf.selu() Function Tensorflow.js is an open-source library that is developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .selu() function is used to find the scaled exponential linear and is done element wise. Syntax: Â tf.selu(x) Where 1 min read Like