You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a weird bug when working with sklearn and onnxruntime-directml. When running natively with python, if the sklearn is imported before onnxruntime, the onnxruntime will throw DLL load failed exception:
Describe the issue
There is a weird bug when working with sklearn and onnxruntime-directml. When running natively with python, if the sklearn is imported before onnxruntime, the onnxruntime will throw DLL load failed exception:
This behavior can be fixed by import onnxruntime first. However, in pyinstaller packed executable, rearrange the import order does not fix the issues.
To reproduce
A simple script to reproduce, the code below will throw exception:
The code below works:
Urgency
No response
Platform
Windows
OS Version
11 (Build number) 22631.3880)
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.18.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
DirectML
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: