aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnnUtils')
-rw-r--r--src/armnnUtils/QuantizeHelper.hpp10
-rw-r--r--src/armnnUtils/test/QuantizeHelperTest.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/armnnUtils/QuantizeHelper.hpp b/src/armnnUtils/QuantizeHelper.hpp
index 061c459156..6fd13fda98 100644
--- a/src/armnnUtils/QuantizeHelper.hpp
+++ b/src/armnnUtils/QuantizeHelper.hpp
@@ -5,6 +5,7 @@
#pragma once
+#include <armnn/utility/IgnoreUnused.hpp>
#include <armnn/TypesUtils.hpp>
#include <Half.hpp>
@@ -13,7 +14,6 @@
#include <iterator>
#include <vector>
-#include <boost/core/ignore_unused.hpp>
#include <boost/numeric/conversion/cast.hpp>
namespace armnnUtils
@@ -38,13 +38,13 @@ struct SelectiveQuantizer<T, false>
{
static T Quantize(float value, float scale, int32_t offset)
{
- boost::ignore_unused(scale, offset);
+ armnn::IgnoreUnused(scale, offset);
return value;
}
static float Dequantize(T value, float scale, int32_t offset)
{
- boost::ignore_unused(scale, offset);
+ armnn::IgnoreUnused(scale, offset);
return value;
}
};
@@ -54,13 +54,13 @@ struct SelectiveQuantizer<armnn::Half, false>
{
static armnn::Half Quantize(float value, float scale, int32_t offset)
{
- boost::ignore_unused(scale, offset);
+ armnn::IgnoreUnused(scale, offset);
return armnn::Half(value);
}
static float Dequantize(armnn::Half value, float scale, int32_t offset)
{
- boost::ignore_unused(scale, offset);
+ armnn::IgnoreUnused(scale, offset);
return value;
}
};
diff --git a/src/armnnUtils/test/QuantizeHelperTest.cpp b/src/armnnUtils/test/QuantizeHelperTest.cpp
index 7e781d0b5d..410fdfa715 100644
--- a/src/armnnUtils/test/QuantizeHelperTest.cpp
+++ b/src/armnnUtils/test/QuantizeHelperTest.cpp
@@ -4,8 +4,8 @@
//
#include <QuantizeHelper.hpp>
+#include <armnn/utility/IgnoreUnused.hpp>
-#include <boost/core/ignore_unused.hpp>
#include <boost/test/unit_test.hpp>
#include <vector>
@@ -18,7 +18,7 @@ namespace
template<typename T>
bool IsFloatIterFunc(T iter)
{
- boost::ignore_unused(iter);
+ armnn::IgnoreUnused(iter);
return armnnUtils::IsFloatingPointIterator<T>::value;
}