ATLAS Offline Software
Control
AthOnnx
AthOnnxInterfaces
AthOnnxInterfaces
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).
7
#include <
AsgServices/IAsgService.h
>
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
32
DeclareInterfaceID
(
AthOnnx::IOnnxRuntimeSvc
, 1, 0);
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
Generated on Sun Dec 22 2024 21:11:52 for ATLAS Offline Software by
1.8.18