Skip to content
Commit 07cf662c authored by Bryan Bernhart's avatar Bryan Bernhart Committed by Chromium LUCI CQ
Browse files

WebNN: Implement MLBuffer transfer ops

Adds support to upload or read back data to/from MLBuffer.
Since MLContext determines the device-execution order of
GPU operations, writeBuffer and readBuffer were added to
MLContext.

* Only full MLBuffer read/write from renderer are enabled.

https://github.com/webmachinelearning/webnn/issues/543

Bug: 40278771
Change-Id: Id95da35e3f81bed47a356f76b75c043cdd500beb
Cq-Include-Trybots: luci.chromium.try:win11-blink-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5357633


Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarRafael Cintron <rafael.cintron@microsoft.com>
Reviewed-by: default avatarningxin hu <ningxin.hu@intel.com>
Cr-Commit-Position: refs/heads/main@{#1280431}
parent 1922d90b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment