Skip to content

Commit d3e2be5

Browse files
committed
address bbernhar feedback: part 3
1 parent ac407d9 commit d3e2be5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mltensor-explainer.md

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ Any `MLTensor` created with the `MLTensorUsage.WEBGPU_INTEROP` flag may be impor
278278

279279
`compute()` will be deprecated and removed in favor of `dispatch()`.
280280

281+
It's possible `compute()` may have a performance advantage on some platforms for some use cases, such as in one-shot inference (where the benefits of buffer re-use are not relevant) with small inputs/outputs on CPU (where the overhead of task queueing may outweigh the benefits of parallelization). At this time, we do not expect this performance impact to be substantial enough to justify providing two mostly-identical methods for executing an `MLGraph`.
282+
281283
### Open Questions
282284

283285
- How will errors be surfaced? Do we need a concept similar to [WebGPU's error scopes](https://www.w3.org/TR/webgpu/#error-scopes), or is [returning errors via a promise for select operations sufficient](https://github.com/webmachinelearning/webnn/issues/697#issuecomment-2195656878)? See [#477](https://github.com/webmachinelearning/webnn/issues/477)

0 commit comments

Comments
 (0)