17 ATH_MSG_INFO(
" OnnxRuntime release: " << OrtGetApiBase()->GetVersionString());
18 Ort::SessionOptions sessionOptions;
19 sessionOptions.SetGraphOptimizationLevel( GraphOptimizationLevel::ORT_ENABLE_ALL );
20 sessionOptions.DisablePerSessionThreads();
23 ATH_MSG_INFO(
"Asking model from: " << m_modelFileName.value());
26 m_session = std::make_unique<Ort::Session>(m_onnxRuntimeSvc->env(), modelFilePath.c_str(), sessionOptions);
28 return StatusCode::SUCCESS;