ATLAS Offline Software
IOnnxRuntimeSvc.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef ATHEXOnnxRUNTIME_IOnnxRUNTIMESVC_H
4 #define ATHEXOnnxRUNTIME_IOnnxRUNTIMESVC_H
5 
6 // Gaudi include(s).
8 
9 // Onnx include(s).
10 #include <onnxruntime_cxx_api.h>
11 
12 
14 namespace AthOnnx {
15 
16  //class IAsgService
25  class IOnnxRuntimeSvc : virtual public asg::IAsgService{
26 
27  public:
29  virtual ~IOnnxRuntimeSvc() = default;
30 
33 
35  virtual Ort::Env& env() const = 0;
36 
37  }; // class IOnnxRuntimeSvc
38 
39 } // namespace AthOnnx
40 
41 #endif
AthOnnx::IOnnxRuntimeSvc
Service used for managing global objects used by Onnx Runtime.
Definition: IOnnxRuntimeSvc.h:25
asg::IAsgService
Base class for the dual-use service interface classes.
Definition: IAsgService.h:26
AthOnnx::IOnnxRuntimeSvc::DeclareInterfaceID
DeclareInterfaceID(AthOnnx::IOnnxRuntimeSvc, 1, 0)
Declare the interface that this class provides.
AthOnnx::IOnnxRuntimeSvc::~IOnnxRuntimeSvc
virtual ~IOnnxRuntimeSvc()=default
Virtual destructor, to make vtable happy.
IAsgService.h
AthOnnx::IOnnxRuntimeSvc::env
virtual Ort::Env & env() const =0
Return the Onnx Runtime environment object.
AthOnnx
Namespace holding all of the Onnx Runtime example code.
Definition: EvaluateModel.cxx:11