@asully What's the plan for this CL?
The webnn-samples and WebNN EP haven used dispatch. WebNN dev preview demos are moving to use latest ORT WebNN EP, so that will use dispatch soon. I think it is ready for deprecate compute. And @bryan.b...@intel.com also has some optimization work for dispatch pending on removing compute path.
https://github.com/webmachinelearning/webnn-samples/pull/276
https://github.com/microsoft/onnxruntime/pull/21301
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
@asully What's the plan for this CL?
The webnn-samples and WebNN EP haven used dispatch. WebNN dev preview demos are moving to use latest ORT WebNN EP, so that will use dispatch soon. I think it is ready for deprecate compute. And @bryan.b...@intel.com also has some optimization work for dispatch pending on removing compute path.
https://github.com/webmachinelearning/webnn-samples/pull/276
https://github.com/microsoft/onnxruntime/pull/21301
I'd like to merge it as soon as possible!
Unfortunately this CL makes ~all the WPTs fail, since they overwhelmingly use `compute()`. So this CL is blocked on https://crrev.com/c/5556220. @feng...@intel.com and I discussed this here: https://chromium-review.googlesource.com/c/chromium/src/+/5556220/comment/dab5ab45_a091cf23/
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Austin Sullivan@asully What's the plan for this CL?
The webnn-samples and WebNN EP haven used dispatch. WebNN dev preview demos are moving to use latest ORT WebNN EP, so that will use dispatch soon. I think it is ready for deprecate compute. And @bryan.b...@intel.com also has some optimization work for dispatch pending on removing compute path.
https://github.com/webmachinelearning/webnn-samples/pull/276
https://github.com/microsoft/onnxruntime/pull/21301
I'd like to merge it as soon as possible!
Unfortunately this CL makes ~all the WPTs fail, since they overwhelmingly use `compute()`. So this CL is blocked on https://crrev.com/c/5556220. @feng...@intel.com and I discussed this here: https://chromium-review.googlesource.com/c/chromium/src/+/5556220/comment/dab5ab45_a091cf23/
@asu...@chromium.org My CL https://chromium-review.googlesource.com/c/chromium/src/+/5556220 has been landed, please rebase this CL, thanks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Hey @phi...@chromium.org PTAL at this overall change? It passes tests locally so I'm speculatively putting it up for review 🤞
Once it LGTY I'll add mojom and VirtualTestSuite owners
Note: I turned on an IWYU tool to make sure I removed #includes which are now unused with `compute()` gone, hence all these #include changes
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM! we will need to rebaseline the idlharness expectation after the spec is updated?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LGTM! we will need to rebaseline the idlharness expectation after the spec is updated?
Correct. I figure this CL will likely merge before the spec changes, so this seems fine for now
PTAL? Thanks!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
std::unique_ptr<ComputeResources> compute_resources_;This member is not needed anymore.
RecordGraphExecutionOnBackgroundThread(Same here, this method is not needed anymore.
static HRESULT RecordGraphExecution(This method can be removed as well.
struct ComputeResources {I suppose the `ComputeResources` can be removed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
RecordGraphExecutionOnBackgroundThread(Same here, this method is not needed anymore.
Hmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?
Removed Auto-Submit+1 by Austin Sullivan <asu...@chromium.org>
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
RecordGraphExecutionOnBackgroundThread(Austin SullivanSame here, this method is not needed anymore.
Hmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?
It is only used to pre-record the command list for compute (in compute resources). I can open an issue and remove them in a follow-up CL, if you are fine with that. WDYT?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
RecordGraphExecutionOnBackgroundThread(Austin SullivanSame here, this method is not needed anymore.
ningxin huHmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?
It is only used to pre-record the command list for compute (in compute resources). I can open an issue and remove them in a follow-up CL, if you are fine with that. WDYT?
| Code-Review | +1 |
std::unique_ptr<ComputeResources> compute_resources_;This member is not needed anymore.
Tracked by https://issues.chromium.org/issues/378779891
RecordGraphExecutionOnBackgroundThread(Austin SullivanSame here, this method is not needed anymore.
ningxin huHmm `RecordGraphExecutionOnBackgroundThread` is still called during `OnInitializationComplete`. Are you sure we can remove it?
Austin SullivanIt is only used to pre-record the command list for compute (in compute resources). I can open an issue and remove them in a follow-up CL, if you are fine with that. WDYT?
SGTM let's do that :)
Opened https://issues.chromium.org/issues/378779891, I'll upload a CL after this CL landed.
static HRESULT RecordGraphExecution(This method can be removed as well.
Tracked by https://issues.chromium.org/issues/378779891
struct ComputeResources {I suppose the `ComputeResources` can be removed.
Tracked by https://issues.chromium.org/issues/378779891
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
Thanks for all the reviews! Submitting now 🎉
webnn: Remove the MLContext.compute() method
This method has been deprecated for dispatch()
OBSOLETE_HISTOGRAMS=compute() is deprecated in favor of dispatch()
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/49135
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |