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.
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()