MemoryDataToHost

Function Usage

Copies data from the device to the host for post-processing.

Prototype

APP_ERROR MemoryDataToHost(const int index, const std::vector<std::vector<MxBase::BaseTensor>>& tensors,std::vector<std::shared_ptr<void>>& featLayerData);

Parameter Description

Parameter

Input/Output

Description

index

Input

Index of the output pool.

tensors

Input

Array of output tensors.

featLayerData

Output

Output feature data array.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.