Closed Bug 2005690 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 56708 - WebNN: Limit int32 input for dequantizeLinear on ORT backend

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 56708 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/56708
Details from upstream follow.

Miao Bin <bin.miao@intel.com> wrote:

WebNN: Limit int32 input for dequantizeLinear on ORT backend

The ONNX Runtime CPUExecutionProvider has a limitation for the
dequantizeLinear operator: "DequantizeLinear with type int32 or float8
should have no zero point or all zero points should be 0" [1]. And WebNN
WPT has some cases use int32 inputs and non-zero zero_points to test
this operator. These cases will result in context lost triggered by ORT
session run failure.

This CL limits int32 input for dequantizeLinear on ORT backend to avoid
the context lost issue.

[1]
https://github.com/microsoft/onnxruntime/blob/rel-1.23.0/onnxruntime/core/providers/cpu/quantization/quantize_linear.cc#L530C18-L530C120

Bug: 467185159
Change-Id: I8913d9f63a9ee168cee73e4d950febccf57552a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7244911
Reviewed-by: Rafael Cintron \<rafael.cintron@microsoft.com>
Reviewed-by: Hu, Ningxin \<ningxin.hu@intel.com>
Commit-Queue: Miao, Bin \<bin.miao@intel.com>
Cr-Commit-Position: refs/heads/main@{#1557851}

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6e7bd3bf518e https://hg.mozilla.org/integration/autoland/rev/e878b3ed9474 [wpt PR 56708] - WebNN: Limit int32 input for dequantizeLinear on ORT backend, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
You need to log in before you can comment on or make changes to this bug.