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