diff options
author | Jan Eilers <jan.eilers@arm.com> | 2020-03-09 12:13:48 +0000 |
---|---|---|
committer | Jan Eilers <jan.eilers@arm.com> | 2020-03-10 10:07:43 +0000 |
commit | 8eb256065f0e75ecf8e427d56955e2bac117c2d7 (patch) | |
tree | 1387fb4ea4a741475449d78be63d601f9d84b6e5 /src/armnnUtils | |
parent | 8832522f47b701f5f042069e7bf8deae9b75d449 (diff) | |
download | armnn-8eb256065f0e75ecf8e427d56955e2bac117c2d7.tar.gz |
IVGCVSW-4482 Remove boost::ignore_unused
!referencetests:229377
Signed-off-by: Jan Eilers <jan.eilers@arm.com>
Change-Id: Ia9b360b4a057fe7bbce5b268092627c09a0dba82
Diffstat (limited to 'src/armnnUtils')
-rw-r--r-- | src/armnnUtils/QuantizeHelper.hpp | 10 | ||||
-rw-r--r-- | src/armnnUtils/test/QuantizeHelperTest.cpp | 4 |
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; } |