aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_lenet.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2017-10-12 17:34:20 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit7d3d1b923b7793f1cf5e29c78bfda2582522cf25 (patch)
tree7a924958ee7f4c9b7e6245170513862dcc016b87 /examples/graph_lenet.cpp
parent3756186e54d77639564e999082f4bbd1ceec5a2f (diff)
downloadComputeLibrary-7d3d1b923b7793f1cf5e29c78bfda2582522cf25.tar.gz
COMPMID-619: Logging interface
Change-Id: I73d1433ee7a682aeabb7540aa2ea1f6564f90aae Reviewed-on: http://mpd-gerrit.cambridge.arm.com/91775 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'examples/graph_lenet.cpp')
-rw-r--r--examples/graph_lenet.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/graph_lenet.cpp b/examples/graph_lenet.cpp
index 1427abe15f..82f4c5a4c1 100644
--- a/examples/graph_lenet.cpp
+++ b/examples/graph_lenet.cpp
@@ -25,7 +25,7 @@
#error "This example needs to be built with -DARM_COMPUTE_CL"
#endif /* ARM_COMPUTE_CL */
-#include "arm_compute/core/Logger.h"
+#include "arm_compute/core/utils/logging/LoggerRegistry.h"
#include "arm_compute/graph/Graph.h"
#include "arm_compute/graph/Nodes.h"
#include "arm_compute/runtime/CL/CLScheduler.h"
@@ -40,6 +40,7 @@
using namespace arm_compute::graph;
using namespace arm_compute::graph_utils;
+using namespace arm_compute::logging;
/** Generates appropriate accessor according to the specified path
*
@@ -102,7 +103,7 @@ void main_graph_lenet(int argc, const char **argv)
}
Graph graph;
- arm_compute::Logger::get().set_logger(std::cout, arm_compute::LoggerVerbosity::INFO);
+ LoggerRegistry::get().create_reserved_loggers(LogLevel::INFO, { std::make_shared<StdPrinter>() });
//conv1 << pool1 << conv2 << pool2 << fc1 << act1 << fc2 << smx
graph << hint