diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/graph_alexnet.cpp | 5 | ||||
-rw-r--r-- | examples/graph_lenet.cpp | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/graph_alexnet.cpp b/examples/graph_alexnet.cpp index dce7132785..9a747b6b0c 100644 --- a/examples/graph_alexnet.cpp +++ b/examples/graph_alexnet.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" @@ -41,6 +41,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 * @@ -103,7 +104,7 @@ void main_graph_alexnet(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 << hint << Tensor(TensorInfo(TensorShape(227U, 227U, 3U, batches), 1, DataType::F32), DummyAccessor()) 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 |