ATLAS Offline Software
|
Service implementing AthOnnx::IOnnxRuntimeSvc
.
More...
#include <OnnxRuntimeSvc.h>
Public Member Functions | |
Function(s) inherited from @c Service | |
OnnxRuntimeSvc (const std::string &name, ISvcLocator *svc) | |
virtual StatusCode | initialize () override |
Function initialising the service. More... | |
virtual StatusCode | finalize () override |
Function finalising the service. More... | |
Function(s) inherited from @c AthOnnx::IOnnxRuntimeSvc | |
virtual Ort::Env & | env () const override |
Return the Onnx Runtime environment object. More... | |
Private Attributes | |
std::unique_ptr< Ort::Env > | m_env |
Global runtime environment for Onnx Runtime. More... | |
Service implementing AthOnnx::IOnnxRuntimeSvc
.
This is a very simple implementation, just managing the lifetime of some Onnx Runtime C++ objects.
Definition at line 27 of file OnnxRuntimeSvc.h.
AthOnnx::OnnxRuntimeSvc::OnnxRuntimeSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Definition at line 8 of file OnnxRuntimeSvc.cxx.
|
overridevirtual |
Return the Onnx Runtime environment object.
Definition at line 38 of file OnnxRuntimeSvc.cxx.
|
overridevirtual |
|
overridevirtual |
|
private |
Global runtime environment for Onnx Runtime.
Definition at line 52 of file OnnxRuntimeSvc.h.