You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/c/chromium/src/+/6079317
Commit-Queue: Junwei Fu <[email protected]>
Reviewed-by: Reilly Grant <[email protected]>
Reviewed-by: ningxin hu <[email protected]>
Reviewed-by: Alex Gough <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1407058}
0 commit comments