Monado OpenXR Runtime
Loading...
Searching...
No Matches
onnx_wrapper.hpp File Reference

onnxruntime wrapper objects and functions. More...

#include "xrt/xrt_config_build.h"
#include "util/u_logging.h"
#include <concepts>
#include <onnxruntime_c_api.h>
#include <source_location>
#include <string>
#include <utility>
#include <stdexcept>
Include dependency graph for onnx_wrapper.hpp:

Go to the source code of this file.

Data Structures

class  xrt::auxiliary::onnx::Error
 
class  xrt::auxiliary::onnx::OnnxWrapper
 

Macros

#define ONNX_TRACE(onnx, ...)   U_LOG_IFL_T(onnx->log_level, __VA_ARGS__)
 
#define ONNX_DEBUG(onnx, ...)   U_LOG_IFL_D(onnx->log_level, __VA_ARGS__)
 
#define ONNX_INFO(onnx, ...)   U_LOG_IFL_I(onnx->log_level, __VA_ARGS__)
 
#define ONNX_WARN(onnx, ...)   U_LOG_IFL_W(onnx->log_level, __VA_ARGS__)
 
#define ONNX_ERROR(onnx, ...)   U_LOG_IFL_E(onnx->log_level, __VA_ARGS__)
 
#define ORT_SAFE(wrap, fn)   (wrap).ort_safe([&](const OrtApi *api) { return api->fn; })
 

Detailed Description