Skip to content

Commit

Permalink
Fix format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Honry committed Aug 14, 2024
1 parent c7b61c6 commit b6c7bff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/web/ep-webnn.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ To use WebNN EP, you just need to make 3 small changes:
const session = await ort.InferenceSession.create(modelPath, { ..., executionProviders: ['webnn'] });
```
WebNN EP also offers a set of options for creating diverse types of WebNN MLContext.
- `deviceType`: `'cpu'`|`'gpu'`|`'npu'`(default value is `'cpu'`), specifies the preferred type of device to be used for the MLContext.
- `powerPreference`: `'default'`|`'low-power'`|`'high-performance'`(default value is `default`), specifies the preferred type of power consumption to be used for the MLContext.
- `deviceType`: `'cpu'|'gpu'|'npu'`(default value is `'cpu'`), specifies the preferred type of device to be used for the MLContext.
- `powerPreference`: `'default'|'low-power'|'high-performance'`(default value is `'default'`), specifies the preferred type of power consumption to be used for the MLContext.
- `numThreads`: type of number, allows users to specify the number of multi-threads for `'cpu'` device type.
- `context`: type of `MLContext`, allows users to pass a pre-created `MLContext` to WebNN EP, it is required in IO binding feature. If this option is provided, the other options will be ignored.

Expand Down

0 comments on commit b6c7bff

Please sign in to comment.