ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace 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
Service used for managing global objects used by Onnx Runtime.
DeclareInterfaceID(AthOnnx::IOnnxRuntimeSvc, 1, 0)
Declare the interface that this class provides.
virtual Ort::Env & env() const =0
Return the Onnx Runtime environment object.
virtual ~IOnnxRuntimeSvc()=default
Virtual destructor, to make vtable happy.
Base class for the dual-use service interface classes.
Definition IAsgService.h:26
Namespace holding all of the Onnx Runtime example code.