Synopsis
int dpuCreateTask
(
DPUKernel *kernel,
int mode
);
Arguments
- kernel
- The pointer to DPU kernel to be destroyed.
- mode
- The running mode of DPU Task. There are 3 available modes:
- T_MODE_NORMAL
- default mode identical to the mode value “0”.
- T_MODE_PROF
- generate profiling information layer by layer while running of DPU Task, which is useful for performance analysis.
- T_MODE_DEBUG
- dump the raw data for DPU Task's CODE/BIAS/WEIGHT/INPUT/OUTPUT layer by layer for debugging purpose.
Description
Instantiate a DPU Task from DPU Kernel and allocate corresponding DPU memory buffer.
Returns
0 on success, or report error in case of any failure.
Include File
n2cube.h
Availability
Vitis AI v1.0