Skip to content

Commit a4838ae

Browse files
bbernharchromium-wpt-export-bot
authored andcommitted
WebNN: Implement MLBuffer dispatch
Adds support to execute MLGraphs using MLBuffers. Allows the WebNN developer to directly bind MLBuffers as input/outputs to graphs for execution, which keeps MLBuffer data on-device after execution completes. In future CLs, dispatch can be further optimized. * Moves out per graph resources required by Dispatch(). * MLGraphBuilder.build no longer pre-allocates I/O. webmachinelearning/webnn#482 Bug: 1472888 Change-Id: I7400704cf60c149c47c20f22c50d5f12bff89cf9 Cq-Include-Trybots: luci.chromium.try:win11-blink-rel
1 parent e2b6a02 commit a4838ae

File tree

3 files changed

+435
-1
lines changed

3 files changed

+435
-1
lines changed

webnn/conformance_tests/buffer.https.any.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ testDestroyWebNNBuffer('destroyTwice');
1414
testReadWebNNBuffer('read');
1515

1616
testWriteWebNNBuffer('write');
17+
18+
testDispatchWebNNBuffer('dispatch');

webnn/conformance_tests/gpu/buffer.https.any.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ testDestroyWebNNBuffer('destroyTwice', 'gpu');
1414
testReadWebNNBuffer('read', 'gpu');
1515

1616
testWriteWebNNBuffer('write', 'gpu');
17+
18+
testDispatchWebNNBuffer('dispatch', 'gpu');

0 commit comments

Comments
 (0)