ATLAS Offline Software
Namespaces | Functions
OnnxUtils.h File Reference
#include <memory>
#include <vector>
#include <onnxruntime_cxx_api.h>
Include dependency graph for OnnxUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 AthOnnx
 Namespace holding all of the Onnx Runtime example code.
 

Functions

template<typename T >
std::vector< T > AthOnnx::flattenNestedVectors (const std::vector< std::vector< T >> &features)
 
void AthOnnx::getInputNodeInfo (const Ort::Session &session, std::vector< std::vector< int64_t > > &dataShape, std::vector< std::string > &nodeNames)
 
void AthOnnx::getOutputNodeInfo (const Ort::Session &session, std::vector< std::vector< int64_t > > &dataShape, std::vector< std::string > &nodeNames)
 
void AthOnnx::getNodeInfo (const Ort::Session &session, std::vector< std::vector< int64_t > > &dataShape, std::vector< std::string > &nodeNames, bool isInput)
 
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)
 
Ort::Value AthOnnx::createTensor (std::vector< float > &data, const std::vector< int64_t > &dataShape)