From 589e3e81a86c83456580e112978bf7a0ed5f43ac Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Fri, 11 Sep 2020 16:17:48 +0100 Subject: IVGCVSW-5302 Remove some boost::numeric_cast from parsers * Replaced with armnn/utility/NumericCast.hpp * Exclusions in armnnCaffeParser * Three excluded as requires float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan Change-Id: Ib468b606238694334a8319d0ed5db381ce37a915 --- src/armnnOnnxParser/OnnxParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/armnnOnnxParser/OnnxParser.cpp') diff --git a/src/armnnOnnxParser/OnnxParser.cpp b/src/armnnOnnxParser/OnnxParser.cpp index a07a899488..01ad12448f 100644 --- a/src/armnnOnnxParser/OnnxParser.cpp +++ b/src/armnnOnnxParser/OnnxParser.cpp @@ -6,10 +6,10 @@ #include #include +#include #include #include -#include #include #include @@ -350,7 +350,7 @@ TensorInfo ComputeReshapeInfo(const TensorShape& targetShapeTensor, % CHECK_LOCATION().AsString())); } - auto targetNumElements = boost::numeric_cast(std::accumulate(targetDims.begin(), targetDims.end(), + auto targetNumElements = armnn::numeric_cast(std::accumulate(targetDims.begin(), targetDims.end(), -1, std::multiplies())); auto stretchIndex = static_cast(std::distance(targetDims.begin(), stretchDim)); outDims[stretchIndex] = inShape.GetNumElements() / targetNumElements; -- cgit v1.2.1