Skip to content

Instantly share code, notes, and snippets.

@naxty
Created September 1, 2019 15:48
Show Gist options
  • Save naxty/a9e7d7d90c7e22259c8b6c3e66213696 to your computer and use it in GitHub Desktop.
Save naxty/a9e7d7d90c7e22259c8b6c3e66213696 to your computer and use it in GitHub Desktop.
Inference with ONNX.js
const session = new onnx.InferenceSession();
await session.loadModel("model.onnx");
const prediction = await session.run([inputTensor]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment