Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebNN: Respect ArrayBufferView's byte offset and length for MLGraphMojo
An `ArrayBufferView` can be created from an `ArrayBuffer` with bigger size and with a proper byte offset, i.e. `new Float32Array(arrayBuffer, byteOffset, length)`. `MLGraphMojo::ComputeImpl()` should use `ArrayBufferView`'s byte offset and length when copying the input or output data into or from the mojo `BigBuffer`. Bug: 332151809 Change-Id: Ib8873a100de0e5565ae39b483f6fa06b024cb6f6 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5409911 Reviewed-by: Austin Sullivan <[email protected]> Commit-Queue: ningxin hu <[email protected]> Reviewed-by: Reilly Grant <[email protected]> Cr-Commit-Position: refs/heads/main@{#1284226}
- Loading branch information