MemoryDataToHost

Function Usage

Copies data from the device to the host for postprocessing. It is invoked for internal use only. Do not use it.

Prototype

APP_ERROR MxpiModelPostProcessorBase::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.