27 std::vector<ITensorHandle*> outputs)
const
33 const TensorInfo& anchorsInfo = m_Anchors->GetTensorInfo();
40 auto boxEncodings = MakeDecoder<float>(boxEncodingsInfo, inputs[0]->
Map());
41 auto scores = MakeDecoder<float>(scoresInfo, inputs[1]->
Map());
42 auto anchors = MakeDecoder<float>(anchorsInfo, m_Anchors->Map(
false));
44 float* detectionBoxes =
reinterpret_cast<float*
>(outputs[0]->Map());
45 float* detectionClasses =
reinterpret_cast<float*
>(outputs[1]->Map());
46 float* detectionScores =
reinterpret_cast<float*
>(outputs[2]->Map());
47 float* numDetections =
reinterpret_cast<float*
>(outputs[3]->Map());
50 detectionBoxesInfo, detectionClassesInfo,
51 detectionScoresInfo, numDetectionsInfo,
m_Data.m_Parameters,
52 *boxEncodings, *scores, *anchors, detectionBoxes,
53 detectionClasses, detectionScores, numDetections);
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
RefDetectionPostProcessWorkload(const DetectionPostProcessQueueDescriptor &descriptor, const WorkloadInfo &info)
void Execute() const override
Copyright (c) 2021 ARM Limited and Contributors.
void DetectionPostProcess(const TensorInfo &boxEncodingsInfo, const TensorInfo &scoresInfo, const TensorInfo &, const TensorInfo &detectionBoxesInfo, const TensorInfo &, const TensorInfo &, const TensorInfo &, const DetectionPostProcessDescriptor &desc, Decoder< float > &boxEncodings, Decoder< float > &scores, Decoder< float > &anchors, float *detectionBoxes, float *detectionClasses, float *detectionScores, float *numDetections)
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
std::vector< ITensorHandle * > m_Inputs
std::vector< ITensorHandle * > m_Outputs
Contains information about TensorInfos of a layer.