|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include <onnxruntime_cxx_api.h>
48 const std::vector<int64_t>
getShape(Ort::TypeInfo model_info);
55 std::map<std::string, std::vector<float>>
Run(
57 std::vector<float>>
inputs,
60 const std::map<std::string, std::vector<int64_t>>
GetModelInputs();
63 const std::map<std::string, std::string>
GetMETAData();
std::unique_ptr< Ort::Session > m_onnxSession
Ort::SessionOptions m_session_options
const std::vector< const char * > & getInputNames()
std::vector< const char * > m_output_names
std::vector< const char * > m_input_names
std::unique_ptr< Ort::Env > m_onnxEnv
const std::map< std::string, std::string > GetMETAData()
const std::vector< const char * > & getOutputNames()
ONNXWrapper(const std::string model_path)
std::string GetMETADataByKey(const char *key)
const std::vector< int64_t > getShape(Ort::TypeInfo model_info)
std::map< std::string, std::vector< int64_t > > m_input_dims
std::map< std::string, std::vector< float > > Run(std::map< std::string, std::vector< float >> inputs, int n_batches=1)
const std::map< std::string, std::vector< int64_t > > GetModelOutputs()
std::map< std::string, std::vector< int64_t > > m_output_dims
const std::map< std::string, std::vector< int64_t > > GetModelInputs()
const std::vector< int64_t > & getInputShape(int input_nr)
int getNumOutputs() const
const std::vector< int64_t > & getOutputShape(int output_nr)
Ort::AllocatorWithDefaultOptions m_allocator