IVGCVSW-5267 Remove boost from core android-nn-driver
* WIP
!armnn:4231
!armnn:4287
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I7844efc84fac018d8aad1f72dd236ede3fd8e7f2
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp
index f139383..c147684 100644
--- a/ConversionUtils.hpp
+++ b/ConversionUtils.hpp
@@ -23,7 +23,7 @@
#include <CpuExecutor.h>
#include <OperationsUtils.h>
-#include <boost/test/tools/floating_point_comparison.hpp>
+#include <armnnUtils/FloatingPointComparison.hpp>
#include <log/log.h>
#include <vector>
@@ -477,8 +477,7 @@
const float expectedBiasScale = weightInfo.GetQuantizationScale() * inputInfo.GetQuantizationScale();
if (biasInfo.GetQuantizationScale() != expectedBiasScale)
{
- boost::math::fpc::close_at_tolerance<float> comparer(boost::math::fpc::percent_tolerance(1.0f));
- if (comparer(biasInfo.GetQuantizationScale(), expectedBiasScale))
+ if (armnnUtils::within_percentage_tolerance(biasInfo.GetQuantizationScale(), expectedBiasScale, 1.0f))
{
ALOGW("Bias quantization scale has been modified to match input * weights");
biasInfo.SetQuantizationScale(expectedBiasScale);
@@ -1209,7 +1208,7 @@
return LayerInputHandle();
}
- BOOST_FALLTHROUGH; // intentional fallthrough
+ [[clang::fallthrough]]; // intentional fallthrough
}
case HalOperandLifeTime::TEMPORARY_VARIABLE: // intentional fallthrough
case HalOperandLifeTime::MODEL_OUTPUT:
@@ -1336,7 +1335,7 @@
return LayerInputHandle();
}
- BOOST_FALLTHROUGH; // intentional fallthrough
+ [[clang::fallthrough]]; // intentional fallthrough
}
case HalOperandLifeTime::TEMPORARY_VARIABLE: // intentional fallthrough
case HalOperandLifeTime::SUBGRAPH_OUTPUT: