Process
Function Usage
Receives the model inference output tensors and outputs the classification result.
Prototype
virtual APP_ERROR Process(const std::vector<TensorBase>& tensors,
std::vector<std::vector<ClassInfo>> &classInfos,
const std::map<std::string, std::shared_ptr<void>> &configParamMap = {});
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
tensors |
Input |
Input tensors for model post-processing |
classInfos |
Output |
Output classification result |
configParamMap |
Input |
(Optional) Other parameters |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: ClassPostProcessBase