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
either each time in the terminal, or in your `~/.bashrc` file or equivalent, or you will encounter errors.
142
142
143
-
Now, get `squeezenet.onnx`[here](https://s3.amazonaws.com/download.onnx/models/opset_8/squeezenet.tar.gz) (rename `model.onnx` from inside the tar.gz). This model and more can be found in the [ONNX Model Zoo](https://github.com/onnx/models).
143
+
Now, get `squeezenet.onnx`[here](https://s3.amazonaws.com/download.onnx/models/opset_8/squeezenet.tar.gz) (rename `model.onnx` from inside the tar.gz and move it to: `programGenerator/.jvm/src/main/resources/`). This model and more can be found in the [ONNX Model Zoo](https://github.com/onnx/models).
The resulting generated program appears as `programGenerator/src/main/scala/generatedprograms/Squeezenet.scala` and you can run `sbt compile` to confirm that the generated code compiles.
151
+
The resulting generated program appears as `programGenerator/src/gen/scala/Squeezenet.scala` and you can run `sbt compile` to confirm that the generated code compiles.
152
152
153
153
## Program Execution
154
154
@@ -178,7 +178,7 @@ This mode is a work-in-progress.
178
178
### Example execution
179
179
The most extensive working example at the moment is `zio/src/main/scala/NCFZIO.scala`, an implementation of Neural Collaborative Filtering, although you currently need to provide your own model file to load params from at `zio/.jvm/src/main/resources/NCF.onnx`.
180
180
181
-
This example provides full model execution via the `fullNCF` method and fine-grained execution via the `fineNCF` method.
181
+
This example provides full model execution via the `fullNCF` method, while an example of fine-grained execution can be found at `zio/src/main/scala/NCFZIOFine.scala` in the `fineNCF` method.
182
182
183
183
To run it, use:
184
184
```
@@ -197,14 +197,14 @@ To take advantage of union types to express type constraints, a Dotty (Scala 3)
197
197
198
198
The ZIO variant is not yet available for Dotty.
199
199
200
-
Currently at ONNX 1.5.0.
200
+
Currently at ONNX 1.6.0.
201
201
202
202
203
203
### Built With
204
204
205
205
#### Core
206
206
207
-
*[ONNX via JavaCPP Preset for ONNX 1.5.0](https://github.com/bytedeco/javacpp-presets/tree/master/onnx) - Open Neural Network Exchange / The missing bridge between Java and native C++ libraries (For access to Protobuf definitions and operator schemas)
207
+
*[ONNX via JavaCPP Preset for ONNX 1.6.0](https://github.com/bytedeco/javacpp-presets/tree/master/onnx) - Open Neural Network Exchange / The missing bridge between Java and native C++ libraries (For access to Protobuf definitions and operator schemas)
208
208
209
209
*[Spire](https://github.com/non/spire) - Typelevel project enabling generic numeric programming (For support for unsigned ints, complex numbers, the Numeric type class and type specialization to avoid boxing overhead)
0 commit comments