3#ifndef ATHONNX_ONNXRUNTIMESVC_H
4#define ATHONNX_ONNXRUNTIMESVC_H
14#include <onnxruntime_cxx_api.h>
39 virtual StatusCode
finalize()
override;
47 virtual Ort::Env&
env()
const override;
53 Gaudi::Property<int>
m_logLevel{
this,
"LogLevel", 2,
"ONNX Runtime logging level (0=VERBOSE, 1=INFO, 2=WARNING, 3=ERROR, 4=FATAL)"};
56 std::unique_ptr< Ort::Env >
m_env;
Gaudi::Property< int > m_logLevel
ONNX Runtime logging level (0=VERBOSE, 1=INFO, 2=WARNING, 3=ERROR, 4=FATAL).
std::unique_ptr< Ort::Env > m_env
Global runtime environment for Onnx Runtime.
virtual Ort::Env & env() const override
Return the Onnx Runtime environment object.
virtual StatusCode finalize() override
Function finalising the service.
virtual StatusCode initialize() override
Function initialising the service.
OnnxRuntimeSvc(const std::string &name, ISvcLocator *svc)
Namespace holding all of the Onnx Runtime example code.