Closed Bug 2072983 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62756 - webnn: cover triangular masking edge cases

Categories

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

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Matt Hargett <plaztiksyke@gmail.com> wrote:

webnn: cover triangular masking edge cases

Add float32, float16 and int32 cases for triangular():

  • A 3x3 upper triangle with diagonal -1. Existing 2x3 cases cannot distinguish retaining one lower diagonal from retaining the whole matrix.
  • Excluded diagonals containing NaN and infinities, while retained infinities preserve their signs.
  • Int32 boundary values and odd integers beyond float32's exact range, which must be retained without rounding.

The existing zero-ULP tolerance is unchanged. With RustNN's CoreML backend, the prior implementation passes the 34 existing cases and fails all eight additions; the corrected implementation passes all 42 with no skips. The numerical audit reports zero floating-point and integer error for the additions.

WPT lint and JavaScript syntax checks 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 327 tests

Status Summary

Firefox

OK : 3
FAIL: 3

Chrome

OK : 3
PASS: 117
FAIL: 12

Safari

OK : 3
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: