jsheng-jian commented on code in PR #11190:
URL: https://github.com/apache/tvm/pull/11190#discussion_r865465324
##########
tests/python/relay/test_op_level3.py:
##########
@@ -1784,23 +1784,6 @@ def test_segment_sum(
)
-def verify_func(target, dev, func, data, ref_res):
- assert isinstance(data, list)
- for kind in ["vm"]:
- mod = tvm.ir.IRModule.from_expr(func)
- op_res = relay.create_executor(kind, mod=mod, device=dev,
target=target).evaluate()(*data)
- if isinstance(op_res, tvm.runtime.container.ADT):
- assert len(op_res) == len(
- ref_res
- ), "Outputs from TVM and Python implementation must be equal "
-
- for op_result, ref_result in zip(op_res, ref_res):
- tvm.testing.assert_allclose(op_result.numpy(), ref_result,
rtol=1e-5)
- else:
- tvm.testing.assert_allclose(op_res.numpy(), ref_res, rtol=1e-5)
- relay.backend.te_compiler.get().clear()
-
-
Review Comment:
Done
##########
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.
Review Comment:
Fixed.
--
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]