|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include <onnxruntime_cxx_api.h>
52 const std::vector<int64_t>
getShape(Ort::TypeInfo model_info);
59 std::map<std::string, std::vector<float>>
Run(
61 std::vector<float>>
inputs,
64 const std::map<std::string, std::vector<int64_t>>
GetModelInputs();
67 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()
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
ONNXWrapper(const std::string &model_path)
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