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

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

Parameters

Parameter

Description

tensorPackageList

Pointer of the original tensor list.

tensors

Tensor vector, which is used to store generated tensors.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.