From 4398becc0ae11f346e1669a9b5210ef389bd8012 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Thu, 19 Oct 2017 16:10:59 +0100 Subject: COMPMID-638 - Fix Logger in Squeezenet Graph example Change-Id: I5f35dbc31ddf821d777c8d8867d25f05743c73a5 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/92411 Reviewed-by: Georgios Pinitas Tested-by: Kaizen --- examples/graph_squeezenet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/graph_squeezenet.cpp') diff --git a/examples/graph_squeezenet.cpp b/examples/graph_squeezenet.cpp index c550df2c0f..888dd5e5f1 100644 --- a/examples/graph_squeezenet.cpp +++ b/examples/graph_squeezenet.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/graph/SubGraph.h" @@ -42,6 +42,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 * @@ -124,7 +125,7 @@ void main_graph_squeezenet(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() }); graph << TargetHint::OPENCL << Tensor(TensorInfo(TensorShape(224U, 224U, 3U, batches), 1, DataType::F32), DummyAccessor()) -- cgit v1.2.1