[wpt-sync] Sync PR 50113 - webnn: Limit the tensor size with the opSupportLimits
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox136 fixed)
Tracking | Status | |
---|---|---|
firefox136 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Regressed 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
958.26 KB,
text/plain
|
Details |
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.
TheOperandDescriptor::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
Assignee | ||
Comment 1•1 month ago
|
||
Assignee | ||
Comment 2•1 month ago
|
||
Comment 4•1 month ago
|
||
bugherder |
Description
•