Closed Bug 2077032 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 63150 - WebNN: fix float16 ULP ordering and raw storage comparisons

Categories

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

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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 0x0001 incorrectly pass against expected 1 at 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.

Attached file Notable wpt changes —

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)

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d07b50db752b https://hg.mozilla.org/integration/autoland/rev/2ea12b600b66 [wpt PR 63150] - WebNN: fix float16 ULP ordering and raw storage comparisons, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: