From 80c6b146046252af153af27025a28fb59d33c5e6 Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 8 Sep 2020 12:00:32 +0100 Subject: IVGCVSW-5299 Remove some boost::numeric_cast from armnn/tests * Replaced with armnn/utility/NumericCast.hpp * Removed combinations without float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan Change-Id: Ia4ec605f063cdb0071fff302ef48c610f9f9505e --- tests/ImagePreprocessor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/ImagePreprocessor.cpp') diff --git a/tests/ImagePreprocessor.cpp b/tests/ImagePreprocessor.cpp index 5a42b8ae31..4557cadca5 100644 --- a/tests/ImagePreprocessor.cpp +++ b/tests/ImagePreprocessor.cpp @@ -9,8 +9,8 @@ #include #include +#include -#include #include #include @@ -21,7 +21,7 @@ template unsigned int ImagePreprocessor::GetLabelAndResizedImageAsFloat(unsigned int testCaseId, std::vector & result) { - testCaseId = testCaseId % boost::numeric_cast(m_ImageSet.size()); + testCaseId = testCaseId % armnn::numeric_cast(m_ImageSet.size()); const ImageSet& imageSet = m_ImageSet[testCaseId]; const std::string fullPath = m_BinaryDirectory + imageSet.first; @@ -38,7 +38,7 @@ unsigned int ImagePreprocessor::GetLabelAndResizedImageAsFloat(unsign // duplicate data across the batch for (unsigned int i = 1; i < m_BatchSize; i++) { - result.insert(result.end(), result.begin(), result.begin() + boost::numeric_cast(GetNumImageElements())); + result.insert(result.end(), result.begin(), result.begin() + armnn::numeric_cast(GetNumImageElements())); } if (m_DataFormat == DataFormat::NCHW) -- cgit v1.2.1