Closed Bug 2084482 Opened 1 month ago Closed 19 days ago

[wpt-sync] Sync PR 63663 - WebNN: cover full-range int32 values and produced copies

Categories

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

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Matt Hargett <plaztiksyke@gmail.com> wrote:

WebNN: cover full-range int32 values and produced copies

Add 11 exact Int32 cases covering Min/Max, negative truncating Div, ArgMin/ArgMax and a Div-produced result consumed by Identity with only the final consumer exposed. Inputs include adjacent values beyond 2^24 and signed extrema. Every argument-reduction row has a unique winner, avoiding any tie-breaking requirement. No division by zero, overflowing quotient, or duplicate Triangular coverage is added.

These were reduced from cross-model selection/storage controls. All 11 fail in the old RustNN native path and current browser CoreML contexts under each CPU/GPU/NPU hint; the repaired RustNN executor passes all 11. The historical intermediate RustNN revision 50ba9ddd passes both direct Div cases but fails Div→Identity: -16,777,217 becomes -16,777,216. This distinguishes the produced-value copy regression from division itself. A zero-readback browser control fails all 11.

Validated against WPT hash 8b876b9f39a0e7ee65762918cae96b081d14ceb5 after refreshing the Rust bridge for merged #63150/#63151. JavaScript/Rust parity passes for 317,452 ULP pairs, 317,445 binary64-to-Half conversions and ATOL boundaries; the same packet passes through the browser WPT assertions. WPT lint and JavaScript syntax checks pass. Browser: Chrome Canary 157.0.8083.0 on M4 Max/macOS; CoreML contexts were confirmed in chrome://webnn-internals for each CPU/GPU/NPU hint. These hints do not establish accelerator placement.

Integer outputs are checked exactly with zero ULP. The producer and Identity have no allowed integer error, so this composition does not invent a propagated floating-point budget. I'm working on Same-type Cast/Reshape follow-ups but still iterating until I see their repaired controls work well.

Attached file Notable wpt changes —

CI Results

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

Total 351 tests

Status Summary

Firefox

OK : 3
FAIL: 3

Chrome

OK : 3
PASS: 36

Safari

OK : 3
FAIL: 3

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/0cc825b094bd https://hg.mozilla.org/integration/autoland/rev/32c94d9fa931 [wpt PR 63663] - WebNN: cover full-range int32 values and produced copies, a=testonly
Status: NEW → RESOLVED
Closed: 19 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: