Closed Bug 2094908 Opened 10 days ago Closed 8 days ago

[wpt-sync] Sync PR 64976 - webnn: add WPT cases for negative and non-constant gather/scatter indices

Categories

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

task

Tracking

(firefox163 fixed)

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Shiyi Zou <shiyi.zou@intel.com> wrote:

webnn: add WPT cases for negative and non-constant gather/scatter indices

Most gather/scatter conformance tests only exercise constant indices,
which some backends can validate and normalize at graph build time.
Negative indices passed as a graph input may take a different code path
at runtime, and that path had little or no coverage.

This CL adds tests so every gather/scatter op covers both constant and
non-constant indices, with both negative and non-negative values:

  • gatherElements: negative-index cases for 1D-5D inputs on various axes,
    each with a constant and a non-constant variant, plus non-constant
    non-negative cases.
  • gather, gatherND, scatterElements: non-constant variants of the
    existing negative-index cases. gather also adds non-constant
    non-negative cases.
  • scatterND: constant variants of existing negative and non-negative
    cases. Previously all of its indices were non-constant.

Bug: 553670706
Cq-Include-Trybots: luci.chromium.try:mac14.arm64-blink-rel, mac15.arm64-blink-rel, mac15-blink-rel, linux-blink-rel
Change-Id: I30795dfcf27fbf06fd68f8f8d47a3215c238c20e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8724001
Reviewed-by: Hu, Ningxin \<ningxin.hu@intel.com>
Commit-Queue: Zou, Shiyi \<shiyi.zou@intel.com>
Cr-Commit-Position: refs/heads/main@{#1741528}

Attached file Notable wpt changes —

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 357 tests

Status Summary

Firefox

OK : 15
FAIL: 15

Chrome

OK : 15
PASS: 418
FAIL: 90

Safari

OK : 15
FAIL: 15

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/14c2cd692951 https://hg.mozilla.org/integration/autoland/rev/1835d3ae472b [wpt PR 64976] - webnn: add WPT cases for negative and non-constant gather/scatter indices, a=testonly
Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: