|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #include <onnxruntime_c_api.h>
16 Ort::ThreadingOptions tp_options;
17 tp_options.SetGlobalIntraOpNumThreads(1);
18 tp_options.SetGlobalInterOpNumThreads(1);
20 m_env = std::make_unique< Ort::Env >(
21 tp_options, ORT_LOGGING_LEVEL_WARNING,
name().c_str());
25 return StatusCode::SUCCESS;
35 return StatusCode::SUCCESS;
virtual StatusCode finalize() override
Function finalising the service.
std::unique_ptr< Ort::Env > m_env
Global runtime environment for Onnx Runtime.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual Ort::Env & env() const override
Return the Onnx Runtime environment object.
AthROOTErrorHandlerSvc * svc
virtual StatusCode initialize() override
Function initialising the service.
OnnxRuntimeSvc(const std::string &name, ISvcLocator *svc)
Namespace holding all of the Onnx Runtime example code.