Python APIs - 2.0 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2022-01-20
Version
2.0 English

Class 1

The class name is vart.Runner. The following table lists all the functions defined in the vart.Runner class.

Table 1. Quick Function Reference
Type Name Arguments
vart.Runner create_runner xir.Subgraph subgraph

string mode

List[xir.Tensor] get_input_tensors  
List[xir.Tensor] get_output_tensors  
tuple[uint32, int] execute_async List[vart.TensorBuffer] inputs

List[vart.TensorBuffer] outputs

Note: vart.TensorBuffer complete with buffer protocol .

int wait tuple[uint32, int] jobID

For vart.Runner Example, refer to vart.Runner Example

Class 2

The class name is vart.RunnerExt. The following table lists all the functions defined in the vart.RunnerExt class.

vart.RunnerExt extends from vart.Runner.

Table 2. Quick Function Reference
Type Name Arguments
vart.RunnerExt create_runner xir.Subgraph subgraph

String mode

List[vart.TensorBuffer] get_inputs  
List[vart.TensorBuffer] get_outputs  

For vart.RunnerExt example, refer to vart.RunnerExt Example

Class 3

The class name is vitis_ai_library.GraphRunner. The following table lists all the functions defined in the vitis_ai_library.GraphRunner class.

Table 3. Quick Function Reference
Type Name Arguments
vart.RunnerExt create_graph_runner xir.Graph graph

For graph runner example, refer to Graph runner Example