Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

onnxruntime-node

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onnxruntime-node - npm Package Compare versions

Comparing version 1.17.0 to 1.17.3-rev.1

bin/napi-v3/darwin/arm64/libonnxruntime.1.17.3.dylib

4

dist/backend.js

@@ -43,3 +43,3 @@ "use strict";

return new Promise((resolve, reject) => {
process.nextTick(() => {
setImmediate(() => {
try {

@@ -63,3 +63,3 @@ resolve(__classPrivateFieldGet(this, _OnnxruntimeSessionHandler_inferenceSession, "f").run(feeds, fetches, options));

return new Promise((resolve, reject) => {
process.nextTick(() => {
setImmediate(() => {
try {

@@ -66,0 +66,0 @@ resolve(new OnnxruntimeSessionHandler(pathOrBuffer, options || {}));

@@ -8,3 +8,3 @@ "use strict";

// Do not modify file content manually.
exports.version = '1.17.0';
exports.version = '1.17.3-rev.1';
//# sourceMappingURL=version.js.map

@@ -39,3 +39,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

return new Promise((resolve, reject) => {
process.nextTick(() => {
setImmediate(() => {
try {

@@ -60,3 +60,3 @@ resolve(this.#inferenceSession.run(feeds, fetches, options));

return new Promise((resolve, reject) => {
process.nextTick(() => {
setImmediate(() => {
try {

@@ -63,0 +63,0 @@ resolve(new OnnxruntimeSessionHandler(pathOrBuffer, options || {}));

@@ -7,2 +7,2 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

export const version = '1.17.0';
export const version = '1.17.3-rev.1';

@@ -16,7 +16,9 @@ {

},
"version": "1.17.0",
"version": "1.17.3-rev.1",
"dependencies": {
"onnxruntime-common": "1.17.0"
"onnxruntime-common": "1.17.3",
"tar": "^7.0.1"
},
"scripts": {
"postinstall": "node ./script/install",
"buildr": "tsc && node ./script/build --config=RelWithDebInfo",

@@ -23,0 +25,0 @@ "preprepare": "node -e \"require('node:fs').copyFileSync('./node_modules/long/index.d.ts', './node_modules/long/umd/index.d.ts')\"",

@@ -17,10 +17,14 @@ # ONNX Runtime Node.js Binding

ONNXRuntime works on Node.js v12.x+ or Electron v5.x+.
ONNXRuntime works on Node.js v16.x+ (recommend v18.x+) or Electron v15.x+ (recommend v28.x+).
Following platforms are supported with pre-built binaries:
The following table lists the supported versions of ONNX Runtime Node.js binding provided with pre-built binaries.
- Windows x64 CPU NAPI_v3
- Linux x64 CPU NAPI_v3
- MacOS x64 CPU NAPI_v3
| EPs/Platforms | Windows x64 | Windows arm64 | Linux x64 | Linux arm64 | MacOS x64 | MacOS arm64 |
| ------------- | ----------- | ------------- | ----------------- | ----------- | --------- | ----------- |
| CPU | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| DirectML | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |
| CUDA | ❌ | ❌ | ✔️<sup>\[1]</sup> | ❌ | ❌ | ❌ |
- \[1]: CUDA v11.8.
To use on platforms without pre-built binaries, you can build Node.js binding from source and consume it by `npm install <onnxruntime_repo_root>/js/node/`. See also [instructions](https://onnxruntime.ai/docs/build/inferencing.html#apis-and-language-bindings) for building ONNX Runtime Node.js binding locally.

@@ -32,4 +36,18 @@

## CUDA EP Installation
To use CUDA EP, you need to install the CUDA EP binaries. By default, the CUDA EP binaries are installed automatically when you install the package. If you want to skip the installation, you can pass the `--onnxruntime-node-install-cuda=skip` flag to the installation command.
```
npm install onnxruntime-node --onnxruntime-node-install-cuda=skip
```
You can also use this flag to specify the version of the CUDA: (v11 or v12)
```
npm install onnxruntime-node --onnxruntime-node-install-cuda=v12
```
## License
License information can be found [here](https://github.com/microsoft/onnxruntime/blob/main/README.md#license).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc