This example is a demonstration of basic usage of ONNX Runtime Node.js binding.
This example contians a package.json
file, which already lists "onnxruntime-node" as dependency. To work on your own package.json
, use command npm install onnxruntime-node
to install ONNX Runtime Node.js binding.
In this example, we load onnxruntime, create an inference session with a simple model, feed input, get output as result and write it to standard output. All functions are called in their basic form.
npm install
node .