A static method to create a DPU task.
Prototype
std::unique_ptr<
DpuTask
> create(const std::string &kernal_name);
Parameters
The following table lists the create function arguments.
| Type | Member | Description |
|---|---|---|
| Commented parameter kernel_name does not exist in function create. | kernel_name | The dpu kernel name. for example, if kernel_name is "resnet_50", the following dpu model files are searched. ./libdpumodelrestnet_50.so /usr/lib/libdpumodelrestnet_50.so |
Returns
ADpuTask
instance.