【问题标题】:Issues with onnxruntime on Ubuntu 16.04Ubuntu 16.04 上的 onnxruntime 问题
【发布时间】:2020-10-17 19:12:19
【问题描述】:

我正在尝试使用 onnxruntime 在 Ubuntu 16.04 上的 ONNX 模型上运行推理。但是导入语句给了我这个错误:

>>> import onnxruntime
/opt/conda/lib/python3.6/site-packages/onnxruntime/capi/_pybind_state.py:13: UserWarning: Cannot load onnxruntime.capi. Error: '/opt/conda/lib/python3.6/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.cpython-36m-x86_64-linux-gnu.so: cannot enable executable stack as shared object requires: Permission denied'
  warnings.warn("Cannot load onnxruntime.capi. Error: '{0}'".format(str(e)))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.6/site-packages/onnxruntime/__init__.py", line 12, in <module>
    from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed, RunOptions, SessionOptions, set_default_logger_severity, NodeArg, ModelMetadata, GraphOptimizationLevel, ExecutionMode, OrtDevice, SessionIOBinding
ImportError: cannot import name 'get_all_providers'

在线搜索后,我尝试在警告中提到的.so上使用execstack -c。但我收到此消息,问题仍然存在:

section file offsets not monotonically increasing

我非常感谢一些解决此问题的建议。

附:我什至尝试安装 onnxruntime-gpu(我有 CUDA 10.0),但我得到了同样的错误。

【问题讨论】:

    标签: python ubuntu-16.04 onnx onnxruntime


    【解决方案1】:
    猜你喜欢
    • 2016-11-08
    • 1970-01-01
    • 2018-10-11
    • 2020-02-19
    • 1970-01-01
    • 1970-01-01
    • 2017-01-23
    • 2017-03-08
    • 1970-01-01
    相关资源
    最近更新 更多