diff options
author | Isabella Gottardi <isabella.gottardi@arm.com> | 2017-10-19 16:10:59 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 4398becc0ae11f346e1669a9b5210ef389bd8012 (patch) | |
tree | 8f1858f7d951a17e1975820fd879e10ce64faf6c /examples | |
parent | 960ccc4bc62cd589839b9ceb972ac1aa7f770c28 (diff) | |
download | ComputeLibrary-4398becc0ae11f346e1669a9b5210ef389bd8012.tar.gz |
COMPMID-638 - Fix Logger in Squeezenet Graph example
Change-Id: I5f35dbc31ddf821d777c8d8867d25f05743c73a5
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/92411
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/graph_squeezenet.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<StdPrinter>() }); graph << TargetHint::OPENCL << Tensor(TensorInfo(TensorShape(224U, 224U, 3U, batches), 1, DataType::F32), DummyAccessor()) |