create_runner - 3.0 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2023-02-24
Version
3.0 English

Creates an instance of DPU runner by subgraph. This is a factory function.

Prototype

vart.Runner create_runner(xir.Subgraph subgraph, String mode)

Parameters

The following table lists the create_runner function arguments.

Table 1. create_runner Arguments
Type Name Description
xir.Subgraph subgraph XIR Subgraph
String mode 'run' - DPU runner

Returns

An instance of DPU runner.

Usage

runner = vart.Runner.create_runner(subgraph, "run")