aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils/QuantizeHelper.hpp
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2020-09-14 11:47:26 +0100
committerJan Eilers <jan.eilers@arm.com>2020-09-17 09:41:12 +0000
commit0663d66c64d8f1cb2b6158f9018c9ba19e2c504b (patch)
treeab8370395d7009f109e15463dbcf644191c1d639 /src/armnnUtils/QuantizeHelper.hpp
parent171214c8ff275c90cd4f7fc23a34ec2c83b5ea39 (diff)
downloadarmnn-0663d66c64d8f1cb2b6158f9018c9ba19e2c504b.tar.gz
IVGCVSW-5303 Remove some boost::numeric_cast from rest of ArmNN
* Replaced with armnn/utility/NumericCast.hpp * Exclusions in TypeUtils.cpp and QuantizerVisitor.cpp * Excluded as requires float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I5c4c60e7028e1a51bf9379457278d253fd37bc70
Diffstat (limited to 'src/armnnUtils/QuantizeHelper.hpp')
-rw-r--r--src/armnnUtils/QuantizeHelper.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/armnnUtils/QuantizeHelper.hpp b/src/armnnUtils/QuantizeHelper.hpp
index 596ec98f64..231b8411cb 100644
--- a/src/armnnUtils/QuantizeHelper.hpp
+++ b/src/armnnUtils/QuantizeHelper.hpp
@@ -6,6 +6,7 @@
#pragma once
#include <armnn/utility/IgnoreUnused.hpp>
+#include <armnn/utility/NumericCast.hpp>
#include <armnn/TypesUtils.hpp>
#include <BFloat16.hpp>
@@ -15,8 +16,6 @@
#include <iterator>
#include <vector>
-#include <boost/numeric/conversion/cast.hpp>
-
namespace armnnUtils
{
@@ -106,7 +105,7 @@ typename std::enable_if<IsFloatingPointIterator<FloatIt>::value, int>::type=0 //
std::vector<T> QuantizedVector(FloatIt first, FloatIt last, float qScale, int32_t qOffset)
{
std::vector<T> quantized;
- quantized.reserve(boost::numeric_cast<size_t>(std::distance(first, last)));
+ quantized.reserve(armnn::numeric_cast<size_t>(std::distance(first, last)));
for (auto it = first; it != last; ++it)
{