[wpt-sync] Sync PR 63150 - WebNN: fix float16 ULP ordering and raw storage comparisons
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
684.51 KB,
text/plain
|
Details |
Sync web-platform-tests PR 63150 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63150
Details from upstream follow.
Matt Hargett <plaztiksyke@gmail.com> wrote:
WebNN: fix float16 ULP ordering and raw storage comparisons
Correct two float16 comparison errors found while checking on-device transformer and normalization results:
- Order signed float16 encodings numerically. The current helper counts the distance from the negative minimum subnormal to zero as 32769 ULP rather than 1.
- Do not compare a Uint16 storage encoding directly with the expected numerical value. For example, actual bits
0x0001incorrectly pass against expected1at zero tolerance.Add three helper regression tests. All three fail before this change; all 12 helper tests pass afterward in Chrome Canary. An independent numerically sorted binary16 oracle also passes 253,960 distance checks covering every non-NaN encoding. JavaScript syntax checks and WPT lint pass.
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=104761
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 589 tests and 10 subtests
Status Summary
Firefox
OK : 318
PASS : 466
FAIL : 1211
ERROR : 30
NOTRUN: 150
Chrome
OK : 348
PASS : 9497
FAIL : 160
Safari
OK : 318
PASS : 466
FAIL : 1211
ERROR : 30
NOTRUN: 150
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•