Welcome to our Support Center

STFT

Description

Computes the Short-time Fourier Transform of the signal.

 

Input parameters

 

specified_outputs_namearray, this parameter lets you manually assign custom names to the output tensors of a node.

 Graphs in : cluster, ONNX model architecture.

signal (heterogeneous) – T1 : object, input tensor representing a real or complex valued signal. For real input, the following shape is expected: [batch_size][signal_length][1]. For complex input, the following shape is expected: [batch_size][signal_length][2], where [batch_size][signal_length][0] represents the real component and [batch_size][signal_length][1] represents the imaginary component of the signal.
frame_step (heterogeneous) – T2 : object, the number of samples to step between successive DFTs.
window (optional, heterogeneous) – T1 : object, a tensor representing the window that will be slid over the signal.The window must have rank 1 with shape: [window_shape]. It’s an optional value.
frame_length (optional, heterogeneous) – T2 : object, a scalar representing the size of the DFT. It’s an optional value.

 Parameters : cluster,

onesided : boolean, if onesided is true, only values for w in [0, 1, 2, …, floor(n_fft/2) + 1] are returned because the real-to-complex Fourier transform satisfies the conjugate symmetry, i.e., X[m, w] = X[m,w]=X[m,n_fft-w]*. Note if the input or window tensors are complex, then onesided output is not possible. Enabling onesided with real inputs performs a Real-valued fast Fourier transform (RFFT).
Default value “True”.
 training? : boolean, whether B should be transposed on the last two dimensions before doing multiplication.
Default value “True”.
 lda coeff : float, defines the coefficient by which the loss derivative will be multiplied before being sent to the previous layer (since during the backward run we go backwards).
Default value “1”.

 name (optional) : string, name of the node.

Output parameters

 

output (heterogeneous) – T1 : object, the Short-time Fourier Transform of the signals.If onesided is 1, the output has the shape: [batch_size][frames][dft_unique_bins][2], where dft_unique_bins is frame_length // 2 + 1 (the unique components of the DFT) If onesided is 0, the output has the shape: [batch_size][frames][frame_length][2], where frame_length is the length of the DFT.

Type Constraints

T1 in (tensor(bfloat16)tensor(double)tensor(float)tensor(float16)) : Constrain signal and output to float tensors.

T2 in (tensor(int32)tensor(int64)) : Constrain scalar length types to int64_t.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Deep Learning library to run it).
Table of Contents