#include <onnx.h>
|
| ONNXModel (const char *model_path) |
|
void | run (llvm::SmallVector< float, 100 > &input, llvm::SmallVector< float, 100 > &output) |
| Runs the ONNX model on the input and returns the output.
|
|
|
Ort::Value | getInputValue (llvm::SmallVector< float, 100 > &input, int inputIdx) |
|
Definition at line 29 of file onnx.h.
◆ ONNXModel()
ONNXModel::ONNXModel |
( |
const char * | model_path | ) |
|
◆ getInputValue()
Ort::Value ONNXModel::getInputValue |
( |
llvm::SmallVector< float, 100 > & | input, |
|
|
int | inputIdx ) |
|
private |
◆ run()
void ONNXModel::run |
( |
llvm::SmallVector< float, 100 > & | input, |
|
|
llvm::SmallVector< float, 100 > & | output ) |
Runs the ONNX model on the input and returns the output.
Definition at line 51 of file onnx.cpp.
◆ env
◆ model_path
const char* ONNXModel::model_path |
|
private |
◆ session
Ort::Session* ONNXModel::session |
|
private |
The documentation for this class was generated from the following files:
- include/MLModelRunner/ONNXModelRunner/onnx.h
- MLModelRunner/ONNXModelRunner/onnx.cpp