Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Discrepancy in actual and expected output for subgraph test : batchNormalization options.axis=0 + gelu

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
tensorflow

調査の方向性

Start from the subgraph conformance test that chains batchNormalization with options.axis=0 into gelu, using the inputs and expected values in the issue. Reproduce the ULP mismatch at index 4 on the CPU backend, then compare against the other backends the reporter tried. The thread asks the working group whether the tolerance or the expected values should change, so there is no code change to make until that decision is recorded. Done means a documented decision on the tolerance, plus either an updated threshold or a fix.

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

説明

Agenda+ web-platform-tests

Issue

I was running this conformance test for NVIDIA's TensorRT-RTX EP with ORT backend and encountered a failure.

Input:

bnInput     shape [3,1,2] float32 = [-1, 0, 1, 2, 3, 4]
bnMean      shape [3]     float32 = [0, 3, 6]
bnVariance  shape [3]     float32 = [1.0, 1.5, 2.0]

Graph:

batchNormalization(input=bnInput, mean=bnMean, variance=bnVariance, {axis: 0}) -> bnOutput
gelu(bnOutput) -> output

Expected output: shape [3,1,2] float32

[-0.15865567326545715, 0, -0.08366739749908447,
 -0.16910307109355927, -0.03595117852091789, -0.1112278625369072]

Error happens at index 4

actual -0.035951320081949234 should be close enough to expected -0.03595117852091789 by ULP distance: expected <= 24 but got 38

Observations

I tested this with other execution providers in ORT and other backends and encountered similar or same error.

Backend Actual ULP Difference
ORT CPU EP −0.035951320081949234 38
TFLite −0.035951387137174606 56
LiteRT (GPU) −0.035951387137174606 56

Question for the Working Group

  • What is the expected behavior for this test ?
  • Should the discrepancy between the actual and expected outputs be investigated, or is the current error tolerance too strict and in need of adjustment?
主要言語
Bikeshed
スター
566
フォーク
72
平均マージ
6日 5時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

webmachinelearning/webnn のほかの issue

webmachinelearning/webnn の issue をすべて見る

似ている issue

Machine Learning の issue をもっと見る

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

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