Closed Bug 1943493 Opened 1 month ago Closed 25 days ago

[wpt-sync] Sync PR 50261 - webnn: handle avgpool2d roundingType=ceil on CoreML

Categories

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

task

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Phillis Tang <phillis@chromium.org> wrote:

webnn: handle avgpool2d roundingType=ceil on CoreML

The output size is calculated by upstream caller based on the
roundingType, but CoreML needs to know the roundingType and it needs to
match with the output size.
When cache directory is not allowed access, a mismatch just silently
fail, but when CoreML has cache access it crashes on a size mismatch.

So reconstruct the roundingType from the output size.

Added one test case because currently all paddings are asymmetric but
coreml only support symmetric paddings for ceil mode.

Change-Id: Ic1771ccfae07d43bac36fb617ca2b9b9cb364ec2
Bug: 334914466
Reviewed-on: https://chromium-review.googlesource.com/6182746
WPT-Export-Revision: 6fea31ced4ebb4549ea5d58de73c1b9317c2fb56

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/07471c2b586d [wpt PR 50261] - webnn: handle avgpool2d roundingType=ceil on CoreML, a=testonly
Status: NEW → RESOLVED
Closed: 25 days ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.