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/Resize.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backends/reference/workloads/Resize.cpp') diff --git a/src/backends/reference/workloads/Resize.cpp b/src/backends/reference/workloads/Resize.cpp index 16cdd4a2d0..b8bf1bceae 100644 --- a/src/backends/reference/workloads/Resize.cpp +++ b/src/backends/reference/workloads/Resize.cpp @@ -7,7 +7,7 @@ #include "TensorBufferArrayView.hpp" -#include +#include #include #include @@ -27,7 +27,7 @@ inline float Lerp(float a, float b, float w) inline double EuclideanDistance(float Xa, float Ya, const unsigned int Xb, const unsigned int Yb) { - return std::sqrt(pow(Xa - boost::numeric_cast(Xb), 2) + pow(Ya - boost::numeric_cast(Yb), 2)); + return std::sqrt(pow(Xa - armnn::numeric_cast(Xb), 2) + pow(Ya - armnn::numeric_cast(Yb), 2)); } inline float CalculateResizeScale(const unsigned int& InputSize, @@ -35,8 +35,8 @@ inline float CalculateResizeScale(const unsigned int& InputSize, const bool& AlignCorners) { return (AlignCorners && OutputSize > 1) - ? boost::numeric_cast(InputSize - 1) / boost::numeric_cast(OutputSize - 1) - : boost::numeric_cast(InputSize) / boost::numeric_cast(OutputSize); + ? armnn::numeric_cast(InputSize - 1) / armnn::numeric_cast(OutputSize - 1) + : armnn::numeric_cast(InputSize) / armnn::numeric_cast(OutputSize); } inline float PixelScaler(const unsigned int& Pixel, -- cgit v1.2.1