diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-09 09:07:37 +0100 |
---|---|---|
committer | Jan Eilers <jan.eilers@arm.com> | 2020-09-17 08:31:09 +0000 |
commit | 171214c8ff275c90cd4f7fc23a34ec2c83b5ea39 (patch) | |
tree | 23fd3ee288d631c8c94bede71f89f0f1e12da862 /src/backends/reference/workloads/Gather.cpp | |
parent | a25886e0966a6b9433cd23595688fadb88a161b2 (diff) | |
download | armnn-171214c8ff275c90cd4f7fc23a34ec2c83b5ea39.tar.gz |
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 <matthew.sloyan@arm.com>
Change-Id: I9e4e9cd502c865452128fa04415fd6f250baa855
Diffstat (limited to 'src/backends/reference/workloads/Gather.cpp')
-rw-r--r-- | src/backends/reference/workloads/Gather.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backends/reference/workloads/Gather.cpp b/src/backends/reference/workloads/Gather.cpp index 3e2190c81b..03aa2458f5 100644 --- a/src/backends/reference/workloads/Gather.cpp +++ b/src/backends/reference/workloads/Gather.cpp @@ -9,8 +9,7 @@ #include <backendsCommon/WorkloadData.hpp> #include <armnn/utility/IgnoreUnused.hpp> - -#include <boost/numeric/conversion/cast.hpp> +#include <armnn/utility/NumericCast.hpp> namespace armnn { @@ -37,7 +36,7 @@ void Gather(const TensorInfo& paramsInfo, unsigned int outIndex = 0; for (unsigned int i = 0; i < indicesInfo.GetNumElements(); ++i) { - unsigned int indx = boost::numeric_cast<unsigned int>(indices[i]); + unsigned int indx = armnn::numeric_cast<unsigned int>(indices[i]); ARMNN_ASSERT(indices[i] >= 0 && indx < paramsShape[0]); |