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

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

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

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

評価

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

調査の方向性

Start with python/tvm/relax/frontend/onnx/onnx_frontend.py and inspect how the frontend handles similar quantized operators and broadcasting. Then review tests/python/relax/test_frontend_onnx.py and its ONNX Runtime comparisons; done means QLinearAdd supports the listed signed and unsigned types, broadcasting, widened arithmetic, and output clipping, with tests validating results against ONNX Runtime.

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

説明

Description

The ONNX QLinearAdd operator is currently unsupported in TVM Relax's ONNX frontend (python/tvm/relax/frontend/onnx/onnx_frontend.py).

QLinearAdd performs element-wise binary addition on 8-bit quantized tensors with independent scale and zero-point parameters for each input and the output:

C = clip(round(((A - a_zp) * s_a + (B - b_zp) * s_b) / s_c) + c_zp, min_val, max_val)
Key Requirements
  • Support multidirectional numpy-style broadcasting between A and B.
  • Support uint8 and int8 input and output quantization types.
  • Widen to floating-point or fixed-point arithmetic before requantization to avoid intermediate truncation.
  • Output clipping according to the output zero-point type ([0, 255] for uint8, [-128, 127] for int8).
  • Unit tests in tests/python/relax/test_frontend_onnx.py validating against ONNX Runtime.
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 を短くまとめたダイジェスト。