From 171214c8ff275c90cd4f7fc23a34ec2c83b5ea39 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Wed, 9 Sep 2020 09:07:37 +0100 Subject: IVGCVSW-5300 Remove some boost::numeric_cast from armnn/backends * Replaced with armnn/utility/NumericCast.hpp * Some exclusions in reference backend * Excluded as requires float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan Change-Id: I9e4e9cd502c865452128fa04415fd6f250baa855 --- .../test/layerTests/Pooling2dTestImpl.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/backends/backendsCommon/test/layerTests/Pooling2dTestImpl.cpp') diff --git a/src/backends/backendsCommon/test/layerTests/Pooling2dTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/Pooling2dTestImpl.cpp index a4f87ff3ed..70e2e61475 100644 --- a/src/backends/backendsCommon/test/layerTests/Pooling2dTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/Pooling2dTestImpl.cpp @@ -15,6 +15,7 @@ #include #include +#include #include @@ -48,15 +49,15 @@ LayerTestResult SimplePooling2dTestImpl( auto widthIndex = dimensionIndices.GetWidthIndex(); auto channelsIndex = dimensionIndices.GetChannelsIndex(); - unsigned int inputHeight = boost::numeric_cast(input.shape()[heightIndex]); - unsigned int inputWidth = boost::numeric_cast(input.shape()[widthIndex]); - unsigned int inputChannels = boost::numeric_cast(input.shape()[channelsIndex]); - unsigned int inputBatchSize = boost::numeric_cast(input.shape()[0]); + unsigned int inputHeight = armnn::numeric_cast(input.shape()[heightIndex]); + unsigned int inputWidth = armnn::numeric_cast(input.shape()[widthIndex]); + unsigned int inputChannels = armnn::numeric_cast(input.shape()[channelsIndex]); + unsigned int inputBatchSize = armnn::numeric_cast(input.shape()[0]); - unsigned int outputHeight = boost::numeric_cast(outputExpected.shape()[heightIndex]); - unsigned int outputWidth = boost::numeric_cast(outputExpected.shape()[widthIndex]); - unsigned int outputChannels = boost::numeric_cast(outputExpected.shape()[channelsIndex]); - unsigned int outputBatchSize = boost::numeric_cast(outputExpected.shape()[0]); + unsigned int outputHeight = armnn::numeric_cast(outputExpected.shape()[heightIndex]); + unsigned int outputWidth = armnn::numeric_cast(outputExpected.shape()[widthIndex]); + unsigned int outputChannels = armnn::numeric_cast(outputExpected.shape()[channelsIndex]); + unsigned int outputBatchSize = armnn::numeric_cast(outputExpected.shape()[0]); armnn::TensorInfo inputTensorInfo = armnnUtils::GetTensorInfo( inputBatchSize, inputChannels, inputHeight, inputWidth, dataLayout, ArmnnType); -- cgit v1.2.1