Closed Bug 1885262 Opened 7 months ago Closed 7 months ago

[wpt-sync] Sync PR 41811 - [webnn] Add float32 tests for WebNN resample2d op

Categories

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

task

Tracking

(firefox125 fixed)

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

BruceDai <feng.dai@intel.com> wrote:

[webnn] Add float32 tests for WebNN resample2d op

@fdwr This PR is to add 13 float32 resample2d tests. I ran these tests by internal Chromium build using WebNN DirectML backend, got 10 PASS and 3 FAIL.

These 3 FAIL tests are all for resample(down sampling) on "nearest-neighbor" mode with below 4D input of shape [1, 1, 4, 6]

// nchw layout
[[[[ 3.86005284, 45.18463077, 87.67153743, 98.78210347, 66.37414347,  3.41158349],
   [86.14930501, 95.9813372 , 76.87126314, 16.52591355, 65.98782867, 25.47092156],
   [22.56010548, 92.08479613, 85.80876635, 92.63166027, 29.91620871, 75.40461275],
   [62.06375451,  1.77121588, 99.47231285, 11.44055014, 25.39634271, 67.02175102]]]]

by options.sizes = [2, 3] or options.scales = [0.5, 0.5],

output is of shape [1, 1, 2, 3] and its actual value as below

// using bottom right data
[[[[95.9813372 , 16.52591355, 25.47092156],
   [ 1.77121588, 11.44055014, 67.02175102]]]]

while our expected data were generated by https://github.com/webmachinelearning/webnn-baseline/blob/main/src/resample2d.js with same input data and options:

// using top left data
[[[[ 3.86005284, 87.67153743, 66.37414347],
   [22.56010548, 85.80876635, 29.916208715]]]]

I'm not sure which is wrong on

  1. Pure JavaScripts reampled2d implementation for WebNN Baseline
  2. Chromium implementation for reampled2d on DirectML backend

Do you have any ideas? Thanks.

Attached file Notable wpt changes
# CI Results Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI Total 162 tests and 450 subtests ## Status Summary ### Firefox `OK` : 158 `PASS` : 205 `FAIL` : 855 `ERROR` : 4 `NOTRUN`: 8 ### Chrome `OK` : 78 `PASS` : 1531 `CRASH` : 80 `FAIL` : 1217 `ERROR` : 4 `NOTRUN`: 122 ### Safari `OK` : 158 `PASS` : 205 `FAIL` : 855 `ERROR` : 4 `NOTRUN`: 8 ## Links [GitHub PR Head](https://wpt.fyi/results/?sha=6dd67d04af88faddbb828d8f3f8d4ab5cce86251&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=6dd67d04af88faddbb828d8f3f8d4ab5cce86251&label=pr_base) ## Details (See attachment for full changes)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c9ab4dad27e1 [wpt PR 41811] - [webnn] Add float32 tests for WebNN resample2d op, a=testonly https://hg.mozilla.org/integration/autoland/rev/1b0a3be2d91c [wpt PR 41811] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: