[Feature][Relax][ONNX] Support QLinearAveragePool operator in Relax ONNX frontend

オープン
#20,962 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

Start in python/tvm/relax/frontend/onnx/onnx_frontend.py and check how the frontend maps existing ONNX pooling operators, then review tests/python/relax/test_frontend_onnx.py for the ONNX Runtime comparison pattern. Implement support for the listed dimensions, attributes, padding modes, and quantization behavior; done means the tests verify numerical correctness against ONNX Runtime.

索引モデルが issue の本文から書いたものです。

説明

Description

The ONNX QLinearAveragePool operator (opset 11) is currently missing from the Relax ONNX frontend (python/tvm/relax/frontend/onnx/onnx_frontend.py).

QLinearAveragePool performs 8-bit quantized average pooling over 1D, 2D, or 3D spatial dimensions, dequantizing the input tensor, performing average pooling, and requantizing the pooled output with the output scale and zero-point parameters.

Key Requirements
  • Support 1D, 2D, and 3D average pooling kernels.
  • Support kernel_shape, strides, pads, and count_include_pad attributes.
  • Support auto_pad modes (SAME_UPPER, SAME_LOWER, VALID, NOTSET).
  • Proper dequantization: X_f = (X - x_zp) * s_x.
  • Pooling computation and requantization: Y = clip(round(AvgPool(X_f) / s_y) + y_zp, min_val, max_val).
  • Numerical correctness verified against ONNX Runtime in tests/python/relax/test_frontend_onnx.py.
Triage
  • needs-triage
  • frontend:onnx
主要言語
Python
スター
13.9k
フォーク
4.1k
平均マージ
4日 22時間
マージ済み PR(30日)
22

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/tvm のほかの issue

apache/tvm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。