onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

DnnlExecutionProvider is not visible in python API

Open magicaltoast opened this issue 3 years ago • 2 comments

Describe the bug DnnlExecutionProvider is not visible in python API after compiling onnxruntime with it. Creating Inference Session with it causes error DnnlExecutionProvider' is not in available provide

System information

  • OS Platform and Distribution: Ubuntu 21.04
  • ONNX Runtime installed from (source or binary): Source
  • ONNX Runtime version: 1.10.0
  • Python version: 3.8.8

To Reproduce

./build.sh --use_dnnl  --build_wheel  --build_shared_lib  --config Release
cd build/Linux/Release/dist/
pip instsall onnxruntime_dnnl-1.11.0-cp38-cp38-linux_x86_64.whl 
>>> import onnxruntime as rt
>>> rt.get_available_providers()
['CPUExecutionProvider']

When trying to create a model

s=rt.InferenceSession("model.onnx", providers=["DnnlExecutionProvider"])
s.get_providers()
 UserWarning: Specified provider 'DnnlExecutionProvider' is not in available provider names.Available providers: 'CPUExecutionProvider'
  warnings.warn("Specified provider '{}' is not in available provider names."
['CPUExecutionProvider']

Expected behavior ['CPUExecutionProvider',"DnnlExecutionProvider"]

magicaltoast avatar Jan 13 '22 15:01 magicaltoast

i have the same problem, did you solve? Ths

xiaoxiaohehe001 avatar Apr 06 '22 02:04 xiaoxiaohehe001

Same problem here

KungPaoSalmon avatar Sep 16 '22 16:09 KungPaoSalmon

Same problem

mengniwang95 avatar Oct 26 '22 11:10 mengniwang95

Same

kopaser6463 avatar Nov 01 '22 19:11 kopaser6463

same

albertoandreottiATgmail avatar Nov 15 '22 00:11 albertoandreottiATgmail

Has anyone solved this issue?

ashokrajab avatar Oct 19 '23 11:10 ashokrajab

@magicaltoast did you manage to resolve the issue?

ashokrajab avatar Oct 20 '23 11:10 ashokrajab