Skip to content

Commit

Permalink
onnx: add windows cuda support
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed May 14, 2024
1 parent 024e997 commit 390d1b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/onnx/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/onnx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.88"
"version": "0.1.89"
}
2 changes: 1 addition & 1 deletion plugins/onnx/src/ort/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(self, nativeId: str | None = None):
if sys.platform == 'darwin':
providers.append("CoreMLExecutionProvider")

if 'linux' in sys.platform and platform.machine() == 'x86_64':
if ('linux' in sys.platform or 'win' in sys.platform) and platform.machine() == 'x86_64':
deviceId = int(deviceId)
providers.append(("CUDAExecutionProvider", { "device_id": deviceId }))

Expand Down

0 comments on commit 390d1b3

Please sign in to comment.