You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Generated WebNN code** combines the best of both: automated development with optimized bundle size
24
24
25
-
Currently, the WebNN ecosystem provides three primary code generation approaches:
26
-
27
25
## Model-to-Code Conversion
28
26
29
-
These tools convert trained ML models directly into WebNN lean vanilla JavaScript:
27
+
Currently, the WebNN ecosystem provides three primary code generation approaches, these tools convert trained ML models directly into WebNN lean vanilla JavaScript:
-Choose**"Weights NCHW"** and **"Weights NHWC"** → Select `weights_nchw.bin` and `weights_nhwc.bin`
52
51
53
52

54
53
@@ -66,7 +65,7 @@ If your model contains symbolic dimensions, you'll see a **"Set free dimension o
66
65
67
66
1. Click **"Generate WebNN Code"**
68
67
2. Click **"Download Code Files"** to receive:
69
-
- Generated JavaScript file with WebNN implementation
68
+
- Generated JavaScript files `*_nchw.js` and `*_nhwc.js` with WebNN implementation
70
69
-`webnn.html` test file for validation
71
70
3. Put the `weights_nchw.bin` and `weights_nhwc.bin` downloaded from [WebNN Netron](https://ibelem.github.io/netron/) together with `*_nchw.js`, `*_nhwc.js` and `webnn.html` in the same folder
72
71
@@ -115,5 +114,4 @@ The [WebNN Code Generator](https://ibelem.github.io/webnn-code-generator/) is id
115
114
## Related Resources
116
115
-[WebNN Netron](https://ibelem.github.io/netron/) - Model visualization tool with enhanced features for WebNN API
117
116
-[GitHub Issues - WebNN Code Generator](https://github.com/ibelem/webnn-code-generator/issues) - Report bugs and request features
118
-
-[ONNX2WebNN](https://github.com/huningxin/onnx2webnn) - Command-line alternative
119
117
-[WebNN API Specification](https://www.w3.org/TR/webnn/) - Official API documentation
-**Generated WebNN code** combines the best of both: automated development with optimized bundle size
24
24
25
-
Currently, the WebNN ecosystem provides three primary code generation approaches:
26
-
27
25
## Model-to-Code Conversion
28
26
29
-
These tools convert trained ML models directly into WebNN lean vanilla JavaScript:
27
+
Currently, the WebNN ecosystem provides three primary code generation approaches, these tools convert trained ML models directly into WebNN lean vanilla JavaScript:
-Choose**"Weights NCHW"** and **"Weights NHWC"** → Select `weights_nchw.bin` and `weights_nhwc.bin`
52
51
53
52

54
53
@@ -66,7 +65,7 @@ If your model contains symbolic dimensions, you'll see a **"Set free dimension o
66
65
67
66
1. Click **"Generate WebNN Code"**
68
67
2. Click **"Download Code Files"** to receive:
69
-
- Generated JavaScript file with WebNN implementation
68
+
- Generated JavaScript files `*_nchw.js` and `*_nhwc.js` with WebNN implementation
70
69
-`webnn.html` test file for validation
71
70
3. Put the `weights_nchw.bin` and `weights_nhwc.bin` downloaded from [WebNN Netron](https://ibelem.github.io/netron/) together with `*_nchw.js`, `*_nhwc.js` and `webnn.html` in the same folder
72
71
@@ -115,5 +114,4 @@ The [WebNN Code Generator](https://ibelem.github.io/webnn-code-generator/) is id
115
114
## Related Resources
116
115
-[WebNN Netron](https://ibelem.github.io/netron/) - Model visualization tool with enhanced features for WebNN API
117
116
-[GitHub Issues - WebNN Code Generator](https://github.com/ibelem/webnn-code-generator/issues) - Report bugs and request features
118
-
-[ONNX2WebNN](https://github.com/huningxin/onnx2webnn) - Command-line alternative
119
117
-[WebNN API Specification](https://www.w3.org/TR/webnn/) - Official API documentation
0 commit comments