Class XModel

Inheritance Relationships

Base Type

Class Documentation

class XModel : public amdinfer::workers::Worker

The XModel worker accepts a path to an XModel from the user and runs the DPU subgraph associated with the XModel. The incoming requests are sent to the FPGA using the Vitis AI runtime libraries.

Public Functions

inline XModel()
virtual std::thread spawn(BatchPtrQueue *input_queue) override

Starts the worker’s run() method as a separate thread and returns it.

Parameters

input_queue – queue used to send requests to the started worker thread

Returns

std::thread