mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description The Node JS Samples included in the repository have outdated package references that are broken, which are fixed in this PR. ### Motivation and Context The samples included in this repository should just work, but sadly do not. The reason is that they are using very outdated references for the npm modules. This fix updates the dependencies to the current onnxruntime-node, which fixes the samples. Also adds a small update to the .gitignore to exclude the node_modules directories in the samples directory, which keeps the local repo changelist cleaner. |
||
|---|---|---|
| .. | ||
| 01_basic-usage | ||
| 02_create-tensor | ||
| 04_create-inference-session | ||
| .gitignore | ||
| README.md | ||
ONNX Runtime nodejs samples
In each sample's implementation subdirectory, run
npm install
node ./
-
Basic Usage - a demonstration of basic usage of ONNX Runtime Node.js binding.
-
Create Tensor - a demonstration of basic usage of creating tensors.
-
Create InferenceSession - shows how to create InferenceSession in different ways.