diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-03-21 17:52:35 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:16 +0000 |
commit | 9a8c672dd6eb21448fbfb4b636104323d128de88 (patch) | |
tree | 345615b62b3941f2c2db442758fcc12269137156 /examples/graph_vgg19.cpp | |
parent | 36a559e49a3d5b832b1cffd47f2298f452616bb9 (diff) | |
download | ComputeLibrary-9a8c672dd6eb21448fbfb4b636104323d128de88.tar.gz |
COMPMID-1011: Create struct for the graph config parameters
Change-Id: I9c164a817c0cc5f264a5c71a59256dacc6314cb0
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125456
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'examples/graph_vgg19.cpp')
-rw-r--r-- | examples/graph_vgg19.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/graph_vgg19.cpp b/examples/graph_vgg19.cpp index 55502e0e00..f282b90630 100644 --- a/examples/graph_vgg19.cpp +++ b/examples/graph_vgg19.cpp @@ -51,11 +51,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 = ConvolutionMethod::DIRECT; - 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 = ConvolutionMethod::DIRECT; // Parse arguments if(argc < 2) @@ -221,7 +219,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 { |