[wpt-sync] Sync PR 41811 - [webnn] Add float32 tests for WebNN resample2d op
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox125 fixed)
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
151.94 KB,
text/plain
|
Details |
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]
oroptions.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
- Pure JavaScripts reampled2d implementation for WebNN Baseline
- Chromium implementation for reampled2d on DirectML backend
Do you have any ideas? Thanks.
Assignee | ||
Comment 1•7 months ago
|
||
Assignee | ||
Comment 2•7 months ago
|
||
Comment 4•7 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c9ab4dad27e1
https://hg.mozilla.org/mozilla-central/rev/1b0a3be2d91c
Description
•