1#ifndef ONNXRuntime_ONNXRuntime_h
2#define ONNXRuntime_ONNXRuntime_h
4#include "onnxruntime_cxx_api.h"
13 explicit ONNXRuntime(
const std::string& =
"",
const std::vector<std::string>& = {});
17 using Tensor = std::vector<std::vector<T>>;
30 std::unique_ptr<Ort::Env>
env_;
Definition ONNXRuntime.h:11
std::unique_ptr< Ort::Session > session_
Definition ONNXRuntime.h:31
const std::vector< std::string > & inputNames() const
Definition ONNXRuntime.h:22
std::vector< const char * > output_node_strings_
Definition ONNXRuntime.h:34
std::vector< std::string > input_names_
Definition ONNXRuntime.h:35
ONNXRuntime(const ONNXRuntime &)=delete
size_t variablePos(const std::string &) const
Definition ONNXRuntime.cc:113
std::unique_ptr< Ort::Env > env_
Definition ONNXRuntime.h:30
ONNXRuntime & operator=(const ONNXRuntime &)=delete
std::map< std::string, std::vector< int64_t > > input_node_dims_
Definition ONNXRuntime.h:36
std::vector< const char * > input_node_strings_
Definition ONNXRuntime.h:34
Tensor< T > run(Tensor< T > &, const Tensor< long > &={}, unsigned long long=1ull) const
Definition ONNXRuntime.cc:60
ONNXRuntime(const std::string &="", const std::vector< std::string > &={})
Definition ONNXRuntime.cc:6
Ort::MemoryInfo memoryInfo_
Definition ONNXRuntime.h:32
std::vector< std::vector< T > > Tensor
Definition ONNXRuntime.h:17
virtual ~ONNXRuntime()
Definition ONNXRuntime.cc:57
std::map< std::string, std::vector< int64_t > > output_node_dims_
Definition ONNXRuntime.h:36