![]() |
Belle II Software development
|
View a Dataset's m_input as ONNX Tensor and also set up output buffers/Tensors. More...
#include <ONNX.h>
Public Member Functions | |
ONNXTensorView (Dataset &dataset, int nOutputs) | |
Construct a new ONNXTensorView. | |
Ort::Value * | inputTensor () |
Get a pointer to the inputTensor. | |
Ort::Value * | outputTensor () |
Get a pointer to the outputTensor. | |
std::vector< float > | outputData () |
Get a vector of output values (that may have been filled) | |
Private Attributes | |
std::vector< int64_t > | m_inputShape |
Shape of the input Tensor. | |
std::vector< float > | m_outputData |
Output Tensor buffer. | |
std::vector< int64_t > | m_outputShape |
Shape of the output Tensor. | |
Ort::MemoryInfo | m_memoryInfo |
MemoryInfo object to be used when constructing the ONNX Tensors - used to specify device (CPU) | |
Ort::Value | m_inputTensor |
The input Tensor. | |
Ort::Value | m_outputTensor |
The output Tensor. | |
View a Dataset's m_input as ONNX Tensor and also set up output buffers/Tensors.
These views will be passed to Ort::Session::Run
|
inline |
Construct a new ONNXTensorView.
dataset | Dataset whose input vector is supposed to be viewed as ONNX tensor |
nOutputs | Number of output values |
Definition at line 90 of file ONNX.h.
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |