Skip to content

Commit a8c1197

Browse files
committed
Use ORT Web (w/ WebGL) instead of the Node binding for the Scala.js backend
1 parent 43a1576 commit a8c1197

File tree

7 files changed

+261
-28
lines changed

7 files changed

+261
-28
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ For more details on the low-level fine-grained API see [here](FineGrainedAPI.md)
9696

9797
The preferred high-level fine-grained API, most suitable for the end user, is [NDScala](https://github.com/SciScala/NDScala)
9898

99-
\* Up to roughly the intersection of supported ops in ONNX Runtime and (the now defunct) ONNX.js
99+
\* Up to roughly the set of ops supported by ONNX Runtime Web (WebGL backend)
100100

101101
#### Training
102102
Automatic differentiation to enable training is under consideration (ONNX currently provides facilities for training as a tech preview only).
@@ -110,7 +110,7 @@ and inspired by [Nexus](https://github.com/ctongfei/nexus), [Neurocat](https://g
110110
### Backend
111111
There is one backend per Scala platform.
112112
For the JVM the backend is based on [ONNX Runtime](https://github.com/microsoft/onnxruntime), via their official Java API.
113-
For Scala.js / JavaScript the backend is based on the [ONNX Runtime Node.js Binding](https://github.com/microsoft/onnxruntime/tree/main/js/node).
113+
For Scala.js / JavaScript the backend is based on the [ONNX Runtime Web](https://github.com/microsoft/onnxruntime/tree/main/js/web).
114114

115115
Supported ONNX input and output tensor data types:
116116
* Byte
@@ -123,10 +123,11 @@ Supported ONNX input and output tensor data types:
123123
* String
124124

125125
Supported ONNX ops:
126-
* ONNX-Scala, Fine-grained API: 87/178 total
127-
* ONNX-Scala, Full model API: Same as below
126+
* ONNX-Scala, Fine-grained API: 87/178 total (69/178 when using Scala.js / ORT Web backend)
127+
* ONNX-Scala, Full model API: Same as below, depending on backend
128128

129-
* ONNX Runtime / ONNX Runtime NodeJS: 165/178 total.
129+
* ONNX Runtime Web (using WebGL backend): 69/178 total.
130+
* ONNX Runtime: 165/178 total
130131

131132
See the [ONNX backend scoreboard](http://onnx.ai/backend-scoreboard/index.html)
132133

@@ -158,7 +159,7 @@ sbt publishLocal
158159

159160
* [ONNX Runtime via ORT Java API](https://github.com/microsoft/onnxruntime/tree/main/java) - ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
160161

161-
* [ONNX Runtime Node.js Binding](https://github.com/microsoft/onnxruntime/tree/main/js/node)
162+
* [ONNX Runtime Web](https://github.com/microsoft/onnxruntime/tree/main/js/web)
162163

163164
### Inspiration
164165

0 commit comments

Comments
 (0)