microsoft / microsoft/onnxruntime

onnxruntime-node 1.16.0 dml and cuda backend bug.

Open
#17,678 13 comments 0 reactions 1 assignee Claimed by @jchen351 View on GitHub
api:Javascript ep:CUDA ep:DML platform:web platform:windows
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

It seems the onnxruntime-node 1.16.0 add support for the dml and cuda backend. However, when I try this library on the electron backend, a 'no available backend found' error found.

electron: 24.4.0
noderuntime-node 1.16.0
CUDA_PATH: C:\Program Files \NVIDIA GPU Computing Toolkit\CUDA\v11.3

### To reproduce

```js
import * as ort from 'onnxrunbtime-node'

let session = undefined
export async function openSession (modelBytes) {
session = await ort.InferenceSession.create(modelBytes, {executionProviders: ['dml', 'cuda']})
}

```

### Urgency

Yes.

### Platform

Windows

### OS Version

Windows 10

### ONNX Runtime Installation

Released Package

### ONNX Runtime Version or Commit ID

"onnxruntime-node": "^1.16.0",

### ONNX Runtime API

JavaScript

### Architecture

X64

### Execution Provider

CUDA, DirectML

### Execution Provider Library Version

CUDA v11.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.