diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-23 16:57:23 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2020-10-02 15:05:08 +0000 |
commit | 24ac85943b609e48fc36d16570ca4b5b90d31a6a (patch) | |
tree | 6a279be5b2be2084ddff3ec989a957e17ecad26b /tests/InferenceTest.inl | |
parent | 0c8cb872344d3ca4217881d6c70e826ae1776cdb (diff) | |
download | armnn-24ac85943b609e48fc36d16570ca4b5b90d31a6a.tar.gz |
IVGCVSW-5334 Remove remaining boost::numeric_cast from armnn
* Floating point casts now use armnn::numeric_cast.
* Also removed remaining header imports.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: I2d37847d67f164fc0a0ae17f34d49ff3d2210c30
Diffstat (limited to 'tests/InferenceTest.inl')
-rw-r--r-- | tests/InferenceTest.inl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/InferenceTest.inl b/tests/InferenceTest.inl index e10bb38cb0..e8401f6bc3 100644 --- a/tests/InferenceTest.inl +++ b/tests/InferenceTest.inl @@ -7,7 +7,6 @@ #include <armnn/utility/Assert.hpp> #include <armnn/utility/NumericCast.hpp> -#include <boost/numeric/conversion/cast.hpp> #include <boost/program_options.hpp> #include <fmt/format.h> @@ -247,8 +246,8 @@ ClassifierTestCaseProvider<TDatabase, InferenceModel>::GetTestCase(unsigned int template <typename TDatabase, typename InferenceModel> bool ClassifierTestCaseProvider<TDatabase, InferenceModel>::OnInferenceTestFinished() { - const double accuracy = boost::numeric_cast<double>(m_NumCorrectInferences) / - boost::numeric_cast<double>(m_NumInferences); + const double accuracy = armnn::numeric_cast<double>(m_NumCorrectInferences) / + armnn::numeric_cast<double>(m_NumInferences); ARMNN_LOG(info) << std::fixed << std::setprecision(3) << "Overall accuracy: " << accuracy; // If a validation file was requested as output, the predictions are saved to it. |