#include <METNetHandler.h>
Definition at line 22 of file METNetHandler.h.
◆ METNetHandler() [1/2]
| met::METNetHandler::METNetHandler |
( |
const std::string & |
modelName | ) |
|
◆ ~METNetHandler()
| virtual met::METNetHandler::~METNetHandler |
( |
| ) |
|
|
virtualdefault |
◆ METNetHandler() [2/2]
| met::METNetHandler::METNetHandler |
( |
| ) |
|
|
privatedelete |
◆ getReqSize()
| unsigned int met::METNetHandler::getReqSize |
( |
| ) |
const |
◆ initialize()
| int met::METNetHandler::initialize |
( |
| ) |
|
◆ predict()
| void met::METNetHandler::predict |
( |
std::vector< float > & |
outputs, |
|
|
std::vector< float > & |
inputs |
|
) |
| const |
Definition at line 45 of file METNetHandler.cxx.
50 auto memory_info = Ort::MemoryInfo::CreateCpu(OrtArenaAllocator, OrtMemTypeDefault);
51 Ort::Value input_tensor = Ort::Value::CreateTensor<float>( memory_info,
58 Ort::Value output_tensor = Ort::Value::CreateTensor<float>( memory_info,
65 std::lock_guard<std::mutex>
lock(m_onnxMutex);
66 m_onnxSession->Run( Ort::RunOptions{
nullptr},
◆ 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: