commit | 83c6f55ea0082d6570f7cccfb3d238748aa169b0 | [log] [tgz] |
---|---|---|
author | Ningxin Hu <ningxin.hu@intel.com> | Sat Jun 17 02:35:22 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Jun 17 02:35:22 2023 |
tree | b5010bd1938c2803e9e68ab1ad20428d957c08b8 | |
parent | 5016469d1b8149bb33f9f5cfeb3bfa2d6db6ef59 [diff] |
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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.