dpuGetOutputTensorInCHWFP32() - dpuGetOutputTensorInCHWFP32() - 1.4 English - UG1414

Vitis AI User Guide (UG1414)

Document_ID
UG1414
Release_Date
2021-07-22
Version
1.4 English

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