From 24ac85943b609e48fc36d16570ca4b5b90d31a6a Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Wed, 23 Sep 2020 16:57:23 +0100 Subject: IVGCVSW-5334 Remove remaining boost::numeric_cast from armnn * Floating point casts now use armnn::numeric_cast. * Also removed remaining header imports. Signed-off-by: Matthew Sloyan Change-Id: I2d37847d67f164fc0a0ae17f34d49ff3d2210c30 --- src/backends/reference/workloads/DetectionPostProcess.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/backends/reference/workloads/DetectionPostProcess.cpp') diff --git a/src/backends/reference/workloads/DetectionPostProcess.cpp b/src/backends/reference/workloads/DetectionPostProcess.cpp index ce07110da9..f80f20a441 100644 --- a/src/backends/reference/workloads/DetectionPostProcess.cpp +++ b/src/backends/reference/workloads/DetectionPostProcess.cpp @@ -8,8 +8,6 @@ #include #include -#include - #include #include @@ -120,7 +118,7 @@ void AllocateOutputData(unsigned int numOutput, { unsigned int boxCornorIndex = selectedBoxes[outputIndices[i]] * 4; detectionScores[i] = selectedScores[outputIndices[i]]; - detectionClasses[i] = boost::numeric_cast(selectedClasses[outputIndices[i]]); + detectionClasses[i] = armnn::numeric_cast(selectedClasses[outputIndices[i]]); detectionBoxes[boxIndex] = boxCorners[boxCornorIndex]; detectionBoxes[boxIndex + 1] = boxCorners[boxCornorIndex + 1]; detectionBoxes[boxIndex + 2] = boxCorners[boxCornorIndex + 2]; @@ -136,7 +134,7 @@ void AllocateOutputData(unsigned int numOutput, detectionBoxes[boxIndex + 3] = 0.0f; } } - numDetections[0] = boost::numeric_cast(numSelected); + numDetections[0] = armnn::numeric_cast(numSelected); } void DetectionPostProcess(const TensorInfo& boxEncodingsInfo, -- cgit v1.2.1