#include <METNetHandler.h>
Definition at line 22 of file METNetHandler.h.
◆ METNetHandler() [1/2]
| met::METNetHandler::METNetHandler |
( |
const std::string & | modelName | ) |
|
Definition at line 15 of file METNetHandler.cxx.
15 :
std::vector< const char * > m_graphInputNames
std::vector< const char * > m_graphOutputNames
std::vector< int64_t > m_outputDims
std::vector< int64_t > m_inputDims
◆ ~METNetHandler()
| virtual met::METNetHandler::~METNetHandler |
( |
| ) |
|
|
virtualdefault |
◆ METNetHandler() [2/2]
| met::METNetHandler::METNetHandler |
( |
| ) |
|
|
privatedelete |
◆ getReqSize()
◆ initialize()
| int met::METNetHandler::initialize |
( |
| ) |
|
Definition at line 24 of file METNetHandler.cxx.
24 {
25
26
29
30
33
34
36
37 return 0;
38 }
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Ort::SessionOptions m_onnxSessionOptions
◆ predict()
| void met::METNetHandler::predict |
( |
std::vector< float > & | outputs, |
|
|
std::vector< float > & | inputs ) const |
Definition at line 45 of file METNetHandler.cxx.
45 {
46
47
48
49
50 auto memory_info = Ort::MemoryInfo::CreateCpu(OrtArenaAllocator, OrtMemTypeDefault);
51 Ort::Value input_tensor = Ort::Value::CreateTensor<float>( memory_info,
56
58 Ort::Value output_tensor = Ort::Value::CreateTensor<float>( memory_info,
63
64
65 std::lock_guard<std::mutex> lock(m_onnxMutex);
66 m_onnxSession->Run( Ort::RunOptions{nullptr},
69 }
◆ ATLAS_THREAD_SAFE [1/2]
| std::unique_ptr<Ort::Session> m_onnxSession met::METNetHandler::ATLAS_THREAD_SAFE {nullptr} |
|
mutableprivate |
◆ ATLAS_THREAD_SAFE [2/2]
| std::mutex m_onnxMutex met::METNetHandler::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_graphInputNames
| std::vector<const char *> met::METNetHandler::m_graphInputNames |
|
private |
◆ m_graphOutputNames
| std::vector<const char *> met::METNetHandler::m_graphOutputNames |
|
private |
◆ m_inputDims
| std::vector<int64_t> met::METNetHandler::m_inputDims |
|
private |
◆ m_modelName
| std::string met::METNetHandler::m_modelName |
|
private |
◆ m_modelPath
| std::string met::METNetHandler::m_modelPath |
|
private |
◆ m_numInputs
| size_t met::METNetHandler::m_numInputs |
|
private |
◆ m_numOutputs
| size_t met::METNetHandler::m_numOutputs |
|
private |
◆ m_onnxAllocator
| Ort::AllocatorWithDefaultOptions met::METNetHandler::m_onnxAllocator |
|
private |
◆ m_onnxEnv
| Ort::Env met::METNetHandler::m_onnxEnv |
|
private |
◆ m_onnxSessionOptions
| Ort::SessionOptions met::METNetHandler::m_onnxSessionOptions |
|
private |
◆ m_outputDims
| std::vector<int64_t> met::METNetHandler::m_outputDims |
|
private |
The documentation for this class was generated from the following files: