get_output_tensors - get_output_tensors - 2.0 English - UG1414

Vitis AI User Guide (UG1414)

Document_ID
UG1414
Release_Date
2022-01-20
Version
2.0 English

Gets all output tensors of runner.

Prototype

std::vector<const xir::Tensor*> get_output_tensors()

Parameters

None

Returns

All output tensors. A vector of raw pointer to the output tensor.

Usage

Each element of the list returned by get_output_tensors() corresponds to a DPU runner output. It has a number of class attributes which can be used like:
outputTensors = runner->get_output_tensors();
for (auto output : outputTensor) {
    output->get_name();
output->get_shape();
output->get_element_num();
}