Synopsis
int dpuGetOutputTensorInCHWInt8
(
DPUTask *task,
const char *nodeName,
int8_t *data,
int size,
int idx = 0
)
Arguments
- task
- The pointer to DPU Task.
- nodeName
- The pointer to DPU Node name.
- data
- The start address of CPU memory block for storing output Tensor’s data.
- size
- The size (in Bytes) of output data to be stored.
- idx
- The index of a single output tensor for the Node, with default value of 0.
Description
Get DPU Task’s output Tensor and store its data into a CPU memory block. Data will be stored in type of INT8 and in DPU Tensor’s order: height, weight and channel.
Returns
0 on success, or report error in case of failure.
Include File
n2cube.h
Availability
Vitis AI v1.0