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
First i use commond '--use dnnl' to build a onnxruntime.dll enable oneDNN support.
When i use this code to register a dnnl EP to ORT: int threadNum = 4; bool enable_cpu_mem_arena = true; OrtDnnlProviderOptions dnnl_option = { enable_cpu_mem_arena, static_cast<void*>(&threadNum)}; session_options.AppendExecutionProvider_Dnnl(dnnl_option); session_options.SetIntraOpNumThreads(4); session_options.EnableProfiling(L"det_Profiling"); session = Ort::Session(env, model_path.c_str(), session_options);
From det_Profiling.json i find threr always is "provider" : "CPUExecutionProvider",
When i use GetAvailableProviders()
I got "DnnlExecutionProvider" and "CPUExecutionProvider"
How can i use DnnlExecutionProvider as my EP?
Why my Profiling file always is "provider" : "CPUExecutionProvider"?
Is there something miss to config with ORT session? Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First i use commond '--use dnnl' to build a onnxruntime.dll enable oneDNN support.
When i use this code to register a dnnl EP to ORT:
int threadNum = 4;
bool enable_cpu_mem_arena = true;
OrtDnnlProviderOptions dnnl_option = { enable_cpu_mem_arena, static_cast<void*>(&threadNum)};
session_options.AppendExecutionProvider_Dnnl(dnnl_option);
session_options.SetIntraOpNumThreads(4);
session_options.EnableProfiling(L"det_Profiling");
session = Ort::Session(env, model_path.c_str(), session_options);
From det_Profiling.json i find threr always is "provider" : "CPUExecutionProvider",
When i use
GetAvailableProviders()
I got "DnnlExecutionProvider" and "CPUExecutionProvider"
How can i use DnnlExecutionProvider as my EP?
Why my Profiling file always is "provider" : "CPUExecutionProvider"?
Is there something miss to config with ORT session? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions