execute_async - 2.0 English

Vitis AI User Guide (UG1414)

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

Executes the runner. This is a block function.

Prototype

tuple[uint32_t, int] execute_async(
      List[vart.TensorBuffer] inputs,
      List[vart.TensorBuffer] outputs) 
Note: vart.TensorBuffer complete with buffer protocol.

Parameters

The following table lists the execute_async function arguments.

Table 1. execute_async Arguments
Type Name Description
List[vart.TensorBuffer] inputs A list of vart.TensorBuffer containing the input data for inference.
List[vart.TensorBuffer] outputs A list of vart.TensorBuffer which will be filled with output data.

Returns

tuple[jobID, status] status 0 for exit successfully, others for customized warnings or errors.