ConstructTensor

Function Usage

A protected member function that constructs tensors and stores them in vectors. It is invoked for internal use only. Do not use it.

Prototype

APP_ERROR ConstructTensor(std::shared_ptr<MxTools::MxpiTensorPackageList>& tensorPackageList,
                                                    std::vector<MxBase::TensorBase>& tensors);

Parameter Description

Parameter

Description

tensorPackageList

Pointer of the original tensor list.

tensors

Tensor vector, which is used to store generated tensors.

Return Parameter Description

Data Structure

Description

APP_ERROR

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