[Feature][Relax][ONNX] Support STFT (Short-Time Fourier Transform) operator in Relax ONNX frontend
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with python/tvm/relax/frontend/onnx/onnx_frontend.py and the ONNX opset 17 STFT specification in the issue. Check how the frontend handles the related DFT operator and how its tests cover ONNX imports. Done means STFT models import successfully with framing, optional windowing, and the expected real and imaginary output shape.
索引モデルが issue の本文から書いたものです。
説明
Feature Description
Support the ONNX STFT (Short-Time Fourier Transform) operator in the Apache TVM Relax ONNX frontend (python/tvm/relax/frontend/onnx/onnx_frontend.py).
Motivation
In ONNX opset 17, DFT and STFT were introduced as the standard Fourier transform operators for audio and signal processing pipelines. While DFT support is being added, STFT is currently missing in the Relax ONNX frontend.
STFT is widely used in speech recognition, audio processing, and generative audio pipelines (such as Whisper, EnCodec, AudioLDM), which segment raw waveforms into overlapping windowed frames and compute discrete Fourier transforms. Importing ONNX models containing STFT fails with:
NotImplementedError: The following operators are not supported: ['STFT']
This operator was also highlighted in the ONNX operator coverage RFC tracking issue #20124 under Signal Processing operators.
Operator Specification (ONNX Opset 17+)
- Inputs:
signal: Input tensor of shape(batch, signal_length)or(batch, signal_length, 1)or(batch, signal_length, 2)(for complex audio signal).frame_step: Scalar integer representing the hop size between consecutive frames.window(optional): 1-D window tensor (e.g. Hann, Hamming) of lengthframe_length.frame_length(optional): Scalar integer representing the length of each frame (defaults to window length if window is provided).
- Attributes:
onesided: int (default 1) - whether to return half spectrum for real signals.
- Outputs:
output: 4-D tensor of shape(batch, frames, dft_unique_bins, 2)representing real and imaginary frequency components.
Expected Behavior
The Relax ONNX frontend should implement STFT by framing the input signal (sliding window with frame_step and frame_length), applying the window function if provided, and computing discrete Fourier transforms across frames.
- 主要言語
- Python
- スター
- 13.9k
- フォーク
- 4.1k
- 平均マージ
- 4日 22時間
- マージ済み PR(30日)
- 22
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/tvm のほかの issue
-
[Bug] [Relax] `relax.op.unique(return_inverse=True)` returns an input-shaped inverse for N-D input when `axis` is None対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
[Bug][TOPI] `topi.scanop` (`cumsum` / `cumprod`) performs out-of-bounds write/read on empty tensorsオープンneeds-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 3 日以内に返信
-
[Bug] [Relax] take_backward does not normalize negative axis causing heap OOB write and wrong gradients対応中かも @pierceluu10 が 4 日前に担当しました。 オープンneeds-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
[Bug][Relax][ONNX] NonZero returns the wrong output shape for scalar inputs対応中かも @tandede が 9 日前に担当しました。 オープンneeds-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 3 日以内に返信
-
needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 3 日以内に返信
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
web-push-libs/pywebpush#216 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AgriciDaniel/claude-seo#572 ·
メンテナーはふだん 5 日以内に返信
-
area:print-dispatch
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
area: docs domain: technical-writing good first issue type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
Deepak3699/Ai_Mentor#919 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信