create_graph_runner - 2.0 English

Vitis AI User Guide (UG1414)

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

Factory function to create an instance of runner by graph.

Prototype

vart.RunnerExt create_graph_runner(xir.Graph graph)

Parameters

The following table lists the create_graph_runner function arguments.

Table 1. create_graph_runner Arguments
Type Name Description
xir.Graph graph XIR Graph

Returns

An instance of runner.

Usage

graph = xir.Graph.deserialize(xmodel_file)
runner = vitis_ai_library.GraphRunner.create_graph_runner(graph)
input_tensor_buffers = runner.get_inputs()