-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebNN: Implement CommandRecorder::ExecuteOperator() for DML backend
This CL implements `CommandRecorder::ExecuteOperator()` that executes a compiled DirectML operator on the GPU with input and output resources bindings. The caller should call `InitializeOperator()` for this operator before its execution. If the operator execution requires any persistent resources, they should also be initialized before and supplied when calling this method. This CL extends the operator initialization unit tests so that they can also test execution of Relu and Convolution operators and verify the computation result. This CL adds another ExecuteReluOperatorForMultipleBindings test case that ensures the operator execution can be dispatched multiple times with different bindings before waiting for the GPU work to complete. This test case emulates the scenario that JavaScript code may call MLGraph compute method without waiting for the promise of the previous compute to be resolved. Bug: 1273291 Change-Id: Id57e63d5e9eff888d6929b905c661f0594f39909 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4607584 Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Commit-Queue: ningxin hu <ningxin.hu@intel.com> Cr-Commit-Position: refs/heads/main@{#1159241}
- Loading branch information
Showing
3 changed files
with
448 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.