![]() |
ATLAS Offline Software
|
Namespace holding all of the Onnx Runtime example code. More...
Classes | |
class | EvaluateModel |
Algorithm demonstrating the usage of the ONNX Runtime C++ API. More... | |
class | IOnnxRuntimeInferenceTool |
Interface class for creating Onnx Runtime sessions. More... | |
class | IOnnxRuntimeSessionTool |
class | IOnnxRuntimeSvc |
Service used for managing global objects used by Onnx Runtime. More... | |
class | OnnxRuntimeInferenceTool |
class | OnnxRuntimeSessionToolCPU |
class | OnnxRuntimeSessionToolCUDA |
class | OnnxRuntimeSvc |
Service implementing AthOnnx::IOnnxRuntimeSvc . More... | |
Functions | |
std::vector< std::vector< std::vector< float > > > | read_mnist_pixel_notFlat (const std::string &full_path) |
std::vector< int > | read_mnist_label (const std::string &full_path) |
template<typename T > | |
std::vector< T > | flattenNestedVectors (const std::vector< std::vector< T >> &features) |
void | getInputNodeInfo (const Ort::Session &session, std::vector< std::vector< int64_t > > &dataShape, std::vector< std::string > &nodeNames) |
void | getOutputNodeInfo (const Ort::Session &session, std::vector< std::vector< int64_t > > &dataShape, std::vector< std::string > &nodeNames) |
void | getNodeInfo (const Ort::Session &session, std::vector< std::vector< int64_t > > &dataShape, std::vector< std::string > &nodeNames, bool isInput) |
int64_t | getTensorSize (const std::vector< int64_t > &dataShape) |
void | inferenceWithIOBinding (Ort::Session &session, const std::vector< std::string > &inputNames, const std::vector< Ort::Value > &inputData, const std::vector< std::string > &outputNames, const std::vector< Ort::Value > &outputData) |
Ort::Value | createTensor (std::vector< float > &data, const std::vector< int64_t > &dataShape) |
Namespace holding all of the Onnx Runtime example code.
Ort::Value AthOnnx::createTensor | ( | std::vector< float > & | data, |
const std::vector< int64_t > & | dataShape | ||
) |
Definition at line 81 of file OnnxUtils.cxx.
|
inline |
Definition at line 20 of file OnnxUtils.h.
void AthOnnx::getInputNodeInfo | ( | const Ort::Session & | session, |
std::vector< std::vector< int64_t > > & | dataShape, | ||
std::vector< std::string > & | nodeNames | ||
) |
Definition at line 33 of file OnnxUtils.cxx.
void AthOnnx::getNodeInfo | ( | const Ort::Session & | session, |
std::vector< std::vector< int64_t > > & | dataShape, | ||
std::vector< std::string > & | nodeNames, | ||
bool | isInput | ||
) |
Definition at line 9 of file OnnxUtils.cxx.
void AthOnnx::getOutputNodeInfo | ( | const Ort::Session & | session, |
std::vector< std::vector< int64_t > > & | dataShape, | ||
std::vector< std::string > & | nodeNames | ||
) |
Definition at line 41 of file OnnxUtils.cxx.
int64_t AthOnnx::getTensorSize | ( | const std::vector< int64_t > & | dataShape | ) |
void AthOnnx::inferenceWithIOBinding | ( | Ort::Session & | session, |
const std::vector< std::string > & | inputNames, | ||
const std::vector< Ort::Value > & | inputData, | ||
const std::vector< std::string > & | outputNames, | ||
const std::vector< Ort::Value > & | outputData | ||
) |
Definition at line 49 of file OnnxUtils.cxx.
std::vector<int> AthOnnx::read_mnist_label | ( | const std::string & | full_path | ) |
Definition at line 51 of file EvaluateModel.cxx.
std::vector<std::vector<std::vector<float> > > AthOnnx::read_mnist_pixel_notFlat | ( | const std::string & | full_path | ) |
Definition at line 17 of file EvaluateModel.cxx.