diff options
author | Gian Marco <gianmarco.iodice@arm.com> | 2018-02-21 18:03:26 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:47:40 +0000 |
commit | c1b6e37233e0ebd21cb44bf8863a09c0ba5feeb1 (patch) | |
tree | 886ca853c31650c9ffebda29ec61b7b683119fa4 /examples/graph_vgg19.cpp | |
parent | 78c009079654268cca9c22848e4fae9f222b100d (diff) | |
download | ComputeLibrary-c1b6e37233e0ebd21cb44bf8863a09c0ba5feeb1.tar.gz |
COMPMID-765 - Call graph_init only once all nodes have been instantied
- In order to enable to OpenCL tuner, graph_init() has to be called only
once all nodes have been instantiated
Change-Id: I28a51ccada8f81c12e4f4484b892f14a530f6f4d
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121707
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/graph_vgg19.cpp')
-rw-r--r-- | examples/graph_vgg19.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/graph_vgg19.cpp b/examples/graph_vgg19.cpp index f2864f0f13..69ae23d87c 100644 --- a/examples/graph_vgg19.cpp +++ b/examples/graph_vgg19.cpp @@ -88,9 +88,6 @@ public: label = argv[4]; } - // Initialize graph - graph.graph_init(int_target_hint == 2); - graph << target_hint << convolution_hint << Tensor(TensorInfo(TensorShape(224U, 224U, 3U, 1U), 1, DataType::F32), @@ -221,6 +218,9 @@ public: // Softmax << SoftmaxLayer() << Tensor(get_output_accessor(label, 5)); + + // In order to enable the OpenCL tuner, graph_init() has to be called only when all nodes have been instantiated + graph.graph_init(int_target_hint == 2); } void do_run() override { |