Python APIs - 1.4.1 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2021-12-13
Version
1.4.1 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

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  

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