Skip to content

Commit c3aa8be

Browse files
committed
Update debug
1 parent 78a5bc1 commit c3aa8be

File tree

6 files changed

+50
-14
lines changed

6 files changed

+50
-14
lines changed

content/en/api-reference/browser-compatibility/chrome-flags.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ Visit via `about://flags/`
179179
| Usage | `"%LOCALAPPDATA%\Google\Chrome SxS\Application\chrome.exe" --allow-third-party-modules` |
180180

181181
</div>
182+
183+
## Additional Resources
184+
- [Chromium: services/webnn/webnn_switches.h](https://source.chromium.org/chromium/chromium/src/+/main:services/webnn/webnn_switches.h;l=30)

content/en/learn/get-started/debug.mdx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import NvidiaIcon from '../../../../app/_components/icons/ihv/nvidia.jsx'
1212

1313
1. Follow the [WebNN Installation Guide](installation) to enable WebNN API and switch to Windows ML / ONNX Runtime backend
1414
2. Put the ONNX Runtime dynamic link librares into a folder under `C:\Program Files\`, e.g. `C:\Program Files\ONNXRuntime`
15-
3. Launch your Chrome or Edge browser with switch [--webnn-ort-library-path-for-testing](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-library-path-for-testing)
15+
3. Launch your Chrome or Edge browser with switch [`--webnn-ort-library-path-for-testing`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-library-path-for-testing)
1616

1717
<div className="ort-ep">
1818
```shell
@@ -32,7 +32,7 @@ If you are running WebNN on AMD, Intel, Nvidia, or Qualcomm devices and need to
3232

3333
1. Follow the [WebNN Installation Guide](installation) to enable WebNN API and switch to Windows ML / ONNX Runtime backend
3434
2. Put the ONNX Runtime and Execution Provider dynamic link librares into a folder under `C:\Program Files\`, e.g. `C:\Program Files\ONNXRuntime-EP`
35-
3. Launch your Chrome or Edge browser with switch [--webnn-ort-ep-library-path-for-testing](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-ep-library-path-for-testing)
35+
3. Launch your Chrome or Edge browser with switch [`--webnn-ort-ep-library-path-for-testing`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-ep-library-path-for-testing)
3636

3737
### Execution Provider Mapping Table for Independent Hardware Vendors
3838

@@ -97,7 +97,7 @@ TBD
9797

9898
## Use Custom Build of GPU or NPU Drivers
9999

100-
If you are testing with custom or internal GPU or NPU drivers, add the [--allow-third-party-modules](../../api-reference/browser-compatibility/chrome-flags#--allow-third-party-modules) switch when launching the browser.
100+
If you are testing with custom or internal GPU or NPU drivers, add the [`--allow-third-party-modules`](../../api-reference/browser-compatibility/chrome-flags#--allow-third-party-modules) switch when launching the browser.
101101

102102
<div className="ort-ep">
103103
```shell
@@ -113,7 +113,7 @@ If you are testing with custom or internal GPU or NPU drivers, add the [--allow-
113113

114114
## Debug Sandbox Issues
115115

116-
In some cases, you may need to debug WebNN by disabling Chromium's security sandbox using the [--disable-gpu-sandbox](../../api-reference/browser-compatibility/chrome-flags#--disable-gpu-sandbox) switch.
116+
In some cases, you may need to debug WebNN by disabling Chromium's security sandbox using the [`--disable-gpu-sandbox`](../../api-reference/browser-compatibility/chrome-flags#--disable-gpu-sandbox) switch.
117117

118118
<div className="ort-ep">
119119
```shell
@@ -129,7 +129,7 @@ In some cases, you may need to debug WebNN by disabling Chromium's security sand
129129

130130
## Inspect the Verbose Logging
131131

132-
You can configure the logging severity level of ONNX Runtime using the switch [--webnn-ort-logging-level](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-logging-level). Other available severity levels include "INFO", "WARNING", "ERROR" (default), and "FATAL".
132+
You can configure the logging severity level of ONNX Runtime using the switch [`--webnn-ort-logging-level`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-logging-level). Other available severity levels include "INFO", "WARNING", "ERROR" (default), and "FATAL".
133133

134134
<div className="ort-ep">
135135
```shell
@@ -143,6 +143,17 @@ You can configure the logging severity level of ONNX Runtime using the switch [-
143143
```
144144
</div>
145145

146+
## Additional Debug Options
147+
148+
Additional WebNN switches are available:
149+
150+
- [`--webnn-ort-graph-optimization-level`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-graph-optimization-level)
151+
- [`--webnn-ort-enable-profiling`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-enable-profiling)
152+
- [`--webnn-ort-dump-model`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-dump-model)
153+
- [`--webnn-tflite-dump-model`](../../api-reference/browser-compatibility/chrome-flags#--webnn-tflite-dump-model)
154+
155+
146156
## Additional Resources
147157

148-
- [WebNN Flags and Switches in Chromium](../../api-reference/browser-compatibility/chrome-flags)
158+
- [WebNN Flags and Switches in Chromium](../../api-reference/browser-compatibility/chrome-flags)
159+
- [Chromium: services/webnn/webnn_switches.h](https://source.chromium.org/chromium/chromium/src/+/main:services/webnn/webnn_switches.h;l=30)

content/en/learn/get-started/installation.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,8 @@ Provider 1:
8888
### Search for `ONNX Runtime backend for WebNN` and change it to `Disabled`
8989
### Search for `DirectML backend for WebNN` and change it to `Disabled`
9090
### Relaunch browser
91-
</Steps>
91+
</Steps>
92+
93+
## Debug
94+
95+
If you are a developer, visit the [debug page](./debug) for information about WebNN debugging options.

content/zh/api-reference/browser-compatibility/chrome-flags.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ Visit via `about://flags/`
179179
| Usage | `"%LOCALAPPDATA%\Google\Chrome SxS\Application\chrome.exe" --allow-third-party-modules` |
180180

181181
</div>
182+
183+
## Additional Resources
184+
- [Chromium: services/webnn/webnn_switches.h](https://source.chromium.org/chromium/chromium/src/+/main:services/webnn/webnn_switches.h;l=30)

content/zh/learn/get-started/debug.mdx

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import NvidiaIcon from '../../../../app/_components/icons/ihv/nvidia.jsx'
1212

1313
1. Follow the [WebNN Installation Guide](installation) to enable WebNN API and switch to Windows ML / ONNX Runtime backend
1414
2. Put the ONNX Runtime dynamic link librares into a folder under `C:\Program Files\`, e.g. `C:\Program Files\ONNXRuntime`
15-
3. Launch your Chrome or Edge browser with switch [--webnn-ort-library-path-for-testing](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-library-path-for-testing)
15+
3. Launch your Chrome or Edge browser with switch [`--webnn-ort-library-path-for-testing`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-library-path-for-testing)
1616

1717
<div className="ort-ep">
1818
```shell
@@ -32,7 +32,7 @@ If you are running WebNN on AMD, Intel, Nvidia, or Qualcomm devices and need to
3232

3333
1. Follow the [WebNN Installation Guide](installation) to enable WebNN API and switch to Windows ML / ONNX Runtime backend
3434
2. Put the ONNX Runtime and Execution Provider dynamic link librares into a folder under `C:\Program Files\`, e.g. `C:\Program Files\ONNXRuntime-EP`
35-
3. Launch your Chrome or Edge browser with switch [--webnn-ort-ep-library-path-for-testing](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-ep-library-path-for-testing)
35+
3. Launch your Chrome or Edge browser with switch [`--webnn-ort-ep-library-path-for-testing`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-ep-library-path-for-testing)
3636

3737
### Execution Provider Mapping Table for Independent Hardware Vendors
3838

@@ -97,7 +97,7 @@ TBD
9797

9898
## Use Custom Build of GPU or NPU Drivers
9999

100-
If you are testing with custom or internal GPU or NPU drivers, add the [--allow-third-party-modules](../../api-reference/browser-compatibility/chrome-flags#--allow-third-party-modules) switch when launching the browser.
100+
If you are testing with custom or internal GPU or NPU drivers, add the [`--allow-third-party-modules`](../../api-reference/browser-compatibility/chrome-flags#--allow-third-party-modules) switch when launching the browser.
101101

102102
<div className="ort-ep">
103103
```shell
@@ -113,7 +113,7 @@ If you are testing with custom or internal GPU or NPU drivers, add the [--allow-
113113

114114
## Debug Sandbox Issues
115115

116-
In some cases, you may need to debug WebNN by disabling Chromium's security sandbox using the [--disable-gpu-sandbox](../../api-reference/browser-compatibility/chrome-flags#--disable-gpu-sandbox) switch.
116+
In some cases, you may need to debug WebNN by disabling Chromium's security sandbox using the [`--disable-gpu-sandbox`](../../api-reference/browser-compatibility/chrome-flags#--disable-gpu-sandbox) switch.
117117

118118
<div className="ort-ep">
119119
```shell
@@ -129,7 +129,7 @@ In some cases, you may need to debug WebNN by disabling Chromium's security sand
129129

130130
## Inspect the Verbose Logging
131131

132-
You can configure the logging severity level of ONNX Runtime using the switch [--webnn-ort-logging-level](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-logging-level). Other available severity levels include "INFO", "WARNING", "ERROR" (default), and "FATAL".
132+
You can configure the logging severity level of ONNX Runtime using the switch [`--webnn-ort-logging-level`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-logging-level). Other available severity levels include "INFO", "WARNING", "ERROR" (default), and "FATAL".
133133

134134
<div className="ort-ep">
135135
```shell
@@ -143,6 +143,17 @@ You can configure the logging severity level of ONNX Runtime using the switch [-
143143
```
144144
</div>
145145

146+
## Additional Debug Options
147+
148+
Additional WebNN switches are available:
149+
150+
- [`--webnn-ort-graph-optimization-level`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-graph-optimization-level)
151+
- [`--webnn-ort-enable-profiling`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-enable-profiling)
152+
- [`--webnn-ort-dump-model`](../../api-reference/browser-compatibility/chrome-flags#--webnn-ort-dump-model)
153+
- [`--webnn-tflite-dump-model`](../../api-reference/browser-compatibility/chrome-flags#--webnn-tflite-dump-model)
154+
155+
146156
## Additional Resources
147157

148-
- [WebNN Flags and Switches in Chromium](../../api-reference/browser-compatibility/chrome-flags)
158+
- [WebNN Flags and Switches in Chromium](../../api-reference/browser-compatibility/chrome-flags)
159+
- [Chromium: services/webnn/webnn_switches.h](https://source.chromium.org/chromium/chromium/src/+/main:services/webnn/webnn_switches.h;l=30)

content/zh/learn/get-started/installation.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,8 @@ Provider 1:
8888
### Search for `ONNX Runtime backend for WebNN` and change it to `Disabled`
8989
### Search for `DirectML backend for WebNN` and change it to `Disabled`
9090
### Relaunch browser
91-
</Steps>
91+
</Steps>
92+
93+
## Debug
94+
95+
If you are a developer, visit the [debug page](./debug) for information about WebNN debugging options.

0 commit comments

Comments
 (0)