Skip to content

Commit

Permalink
Update anchor link for compute() after dropping synchronous execution…
Browse files Browse the repository at this point in the history
… support (#596)
  • Loading branch information
ibelem authored Mar 7, 2024
1 parent 480b094 commit 86081aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ When the {{MLContext/[[contextType]]}} is set to [=context type/default=] with t
</div>
</details>

### {{MLContext/compute()}} ### {#api-mlcontext-async-execution}
### {{MLContext/compute()}} ### {#api-mlcontext-compute}
Asynchronously carries out the computational workload of a compiled graph {{MLGraph}} on a separate timeline, either on a worker thread for the CPU execution, or on a GPU timeline for the submission of GPU workload on the command queue. The asynchronous nature of this call avoids blocking the calling thread while the computation for result is ongoing. This method of execution requires an {{MLContext}} created with {{MLContextOptions}}. Otherwise, it [=exception/throws=] an "{{OperationError}}" {{DOMException}}.

<div class="note">
Expand Down Expand Up @@ -1015,7 +1015,7 @@ In accordance with the [=ArrayBufferView/write|Web IDL warning=], to prevent the
</div>
</details>

#### Examples #### {#api-mlcontext-async-execution-examples}
#### Examples #### {#api-mlcontext-compute-examples}
<div class="example">
<details open>
<summary>
Expand Down

0 comments on commit 86081aa

Please sign in to comment.