diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-11-26 16:38:31 +0000 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2019-12-05 15:35:51 +0000 |
commit | 08446976e3b6ce0e02f22b391b37aacaad181e1a (patch) | |
tree | b57106c6a3e28662adb2592ac3e850a8f19b6ec7 /tests/Cifar10Database.cpp | |
parent | a3b31f010004ed397ec04325edf7020984847f21 (diff) | |
download | armnn-08446976e3b6ce0e02f22b391b37aacaad181e1a.tar.gz |
Replace boost logging with simple logger
!referencetests:214319
* Reduces arm nn binary size ~15%
* Also fixed test logging black hole issues
Change-Id: Iba27db304d9a8088fa46aeb0b52225d93bb56bc8
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'tests/Cifar10Database.cpp')
-rw-r--r-- | tests/Cifar10Database.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/Cifar10Database.cpp b/tests/Cifar10Database.cpp index 6ba5085b36..b0a90592d2 100644 --- a/tests/Cifar10Database.cpp +++ b/tests/Cifar10Database.cpp @@ -4,8 +4,9 @@ // #include "Cifar10Database.hpp" +#include <armnn/Logging.hpp> + #include <boost/numeric/conversion/cast.hpp> -#include <boost/log/trivial.hpp> #include <fstream> #include <vector> @@ -25,7 +26,7 @@ std::unique_ptr<Cifar10Database::TTestCaseData> Cifar10Database::GetTestCaseData std::ifstream fileStream(fullpath, std::ios::binary); if (!fileStream.is_open()) { - BOOST_LOG_TRIVIAL(fatal) << "Failed to load " << fullpath; + ARMNN_LOG(fatal) << "Failed to load " << fullpath; return nullptr; } @@ -34,7 +35,7 @@ std::unique_ptr<Cifar10Database::TTestCaseData> Cifar10Database::GetTestCaseData if (!fileStream.good()) { - BOOST_LOG_TRIVIAL(fatal) << "Failed to read " << fullpath; + ARMNN_LOG(fatal) << "Failed to read " << fullpath; return nullptr; } |