jsheng-jian commented on code in PR #11190:
URL: https://github.com/apache/tvm/pull/11190#discussion_r865464934
##########
python/tvm/relay/op/transform.py:
##########
@@ -1823,3 +1823,40 @@ def invert_permutation(data):
relay.invert_permutation(data) = [2, 4, 3, 0, 1]
"""
return _make.invert_permutation(data)
+
+
+def stft(data, n_fft, hop_length, win_length, window, normalized, onesided):
+ """
+ The STFT computes the Fourier transform of short overlapping windows of
the input.
+ This giving frequency components of the signal as they change over time.
+ Parameters
+ ----------
+ data : relay.Expr
+ Either a 1-D tensor or a 2-D batch tensor.
+ n_fft : int
+ The size of Fourier transform
+ hop_length : int
+ The distance between neighboring sliding window frames
+ win_length : int
+ The size of window frame and STFT filter
+ window : relay.Expr
+ A 1-D tensor window frame
+ normalized : bool
+ Whether to return the normalized STFT results
+ onesided : bool
+ Whether to return onesided result or fill with conjugate symmetry
+ Returns
+ -------
+ output : relay.Expr
+ Tensor containing the STFT result
Review Comment:
Updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]