onnxruntime: GPU performance (Was named: Cannot load onnxruntime.capi)

Describe the bug import onnxruntime as rt faild with that error

C:\Users\gaplo\AppData\Local\Programs\Python\Python37\lib\site-packages\onnxruntime\capi_pybind_state.py:12: UserWarning: Cannot load onnxruntime.capi. Error: ‘DLL load failed: The specified module could not be found.’ warnings.warn(“Cannot load onnxruntime.capi. Error: ‘{0}’”.format(str(e))) Traceback (most recent call last): File “1.py”, line 4, in <module> import onnxruntime as rt File “C:\Users\gaplo\AppData\Local\Programs\Python\Python37\lib\site-packages\onnxruntime_init_.py”, line 21, in <module> from onnxruntime.capi._pybind_state import RunOptions, SessionOptions, get_device, NodeArg, ModelMetadata ImportError: cannot import name ‘RunOptions’ from ‘onnxruntime.capi._pybind_state’ (C:\Users\gaplo\AppData\Local\Programs\Python\Python37\lib\site-packages\onnxruntime\capi_pybind_state.py)

!!All Environment variables to CUDA are set!!!

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • ONNX Runtime installed from (source or binary): pip install onnxruntime-gpu
  • ONNX Runtime version: 0.2.1
  • Python version: Python 3.7.2
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: 10.1.105_win10
  • GPU model and memory: NVIDIA GTX 1080

To Reproduce Describe steps/code to reproduce the behavior: import onnxruntime as rt

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 30 (4 by maintainers)

Most upvoted comments

yes. We need cuda 9.1 and cudnn 7.3 in order to run. (we are working on upgrading it)