Synopsis
int dpuGetOutputTensorInCHWFP32
(
DPUTask *task,
const char *nodeName,
float *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 32-bit-float and in Caffe Blob’s order: channel, height and weight.
Returns
0 on success, or report error in case of failure.
Include File
n2cube.h
Availability
Vitis AI v1.0