aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_lenet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graph_lenet.cpp')
-rw-r--r--examples/graph_lenet.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/graph_lenet.cpp b/examples/graph_lenet.cpp
index e4b8effe5d..3803da9b83 100644
--- a/examples/graph_lenet.cpp
+++ b/examples/graph_lenet.cpp
@@ -47,10 +47,8 @@ public:
unsigned int batches = 4; /** Number of batches */
// 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);
- 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);
// Parse arguments
if(argc < 2)
@@ -106,7 +104,10 @@ public:
<< OutputLayer(get_output_accessor(""));
// 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
{