ATLAS Offline Software
Loading...
Searching...
No Matches
IOnnxRuntimeSessionTool.h
Go to the documentation of this file.
1// Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2#ifndef AthOnnx_IOnnxRUNTIMESESSIONTool_H
3#define AthOnnx_IOnnxRUNTIMESESSIONTool_H
4
5#include "AsgTools/IAsgTool.h"
6
7#include <onnxruntime_cxx_api.h>
8
9
10namespace AthOnnx {
11 // class IAlgTool
12 //
13 // Interface class for creating Onnx Runtime sessions.
14 //
15 // @author Xiangyang Ju <xju@cern.ch>
16 //
18 {
20
21 public:
22
23 // Create Onnx Runtime session
24 virtual Ort::Session& session() const = 0;
25
26 };
27
28} // namespace AthOnnx
29
30#endif
#define ASG_TOOL_INTERFACE(CLASSNAME)
virtual Ort::Session & session() const =0
Base class for the dual-use tool interface classes.
Definition IAsgTool.h:41
Namespace holding all of the Onnx Runtime example code.