Closed Bug 1941950 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 50113 - webnn: Limit the tensor size with the opSupportLimits

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

(Regressed 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

junwei <junwei.fu@intel.com> wrote:

webnn: Limit the tensor size with the opSupportLimits

The tensor byte length is UINT32_MAX for DirectML backend on Windows,
INT32_MAX for CoreML and TFLite backend, OperandDescriptor::Create
function will be used to validate the limit.

This limitation also prevents the mask tensor of triangular to allocate
large amounts of memory.
The OperandDescriptor::CreateForDeserialization only be used by mojom
traits that need to be validated tensor size limit later.
Add some unittests and WPT tests to validate the byte length limit.

Bug: 359729258
Change-Id: Ic174fe47da3c110a6d263d22318738f5656a07cc
Reviewed-on: https://chromium-review.googlesource.com/6079317
WPT-Export-Revision: bd40cf5e158dc4e8029c7c2661b536b98e9dd2f8

Attached file Notable wpt changes
# CI Results Ran 9 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI Total 372 tests and 13 subtests ## Status Summary ### Firefox `OK` : 354 `FAIL` : 5502 `ERROR` : 18 `NOTRUN`: 90 ### Chrome `OK` : 372 `PASS` : 5778 `FAIL` : 246 ## Links [Gecko CI (Treeherder)](https://treeherder.mozilla.org/#/jobs?repo=try&revision=80facc5e397eeb1fab2c41f615919a78dc6c9989) [GitHub PR Head](https://wpt.fyi/results/?sha=94c462110245444f0775eb529d1721e1a0b32118&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=94c462110245444f0775eb529d1721e1a0b32118&label=pr_base) ## Details (See attachment for full changes)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e542c5088a58 [wpt PR 50113] - webnn: Limit the tensor size with the opSupportLimits, a=testonly
Regressions: 1942582
Regressions: 1942588
Status: NEW → RESOLVED
Closed: 1 month ago
: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: