aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_googlenet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graph_googlenet.cpp')
-rw-r--r--examples/graph_googlenet.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/graph_googlenet.cpp b/examples/graph_googlenet.cpp
index e97f3acdfd..d6e76fdced 100644
--- a/examples/graph_googlenet.cpp
+++ b/examples/graph_googlenet.cpp
@@ -52,11 +52,9 @@ public:
std::unique_ptr<IPreprocessor> preprocessor = arm_compute::support::cpp14::make_unique<CaffePreproccessor>(mean_rgb);
// Set target. 0 (NEON), 1 (OpenCL), 2 (OpenCL with Tuner). By default it is NEON
- const int target = argc > 1 ? std::strtol(argv[1], nullptr, 10) : 0;
- Target target_hint = set_target_hint2(target);
- ConvolutionMethod convolution_hint = (target_hint == Target::CL) ? ConvolutionMethod::WINOGRAD : ConvolutionMethod::GEMM;
- bool enable_tuning = (target == 2);
- bool enable_memory_management = true;
+ const int target = argc > 1 ? std::strtol(argv[1], nullptr, 10) : 0;
+ Target target_hint = set_target_hint2(target);
+ ConvolutionMethod convolution_hint = (target_hint == Target::CL) ? ConvolutionMethod::WINOGRAD : ConvolutionMethod::GEMM;
// Parse arguments
if(argc < 2)
@@ -136,7 +134,10 @@ public:
<< OutputLayer(get_output_accessor(label, 5));
// Finalize graph
- graph.finalize(target_hint, enable_tuning, enable_memory_management);
+ GraphConfig config;
+ config.use_function_memory_manager = true;
+ config.use_tuner = (target == 2);
+ graph.finalize(target_hint, config);
}
void do_run() override
{