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_mobilenet_qasymm8.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_mobilenet_qasymm8.cpp')
-rw-r--r-- | examples/graph_mobilenet_qasymm8.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/graph_mobilenet_qasymm8.cpp b/examples/graph_mobilenet_qasymm8.cpp index 29daeffeac..76b13dd851 100644 --- a/examples/graph_mobilenet_qasymm8.cpp +++ b/examples/graph_mobilenet_qasymm8.cpp @@ -119,9 +119,6 @@ public: label = argv[4]; } - // Initialize graph - graph.graph_init(int_target_hint == 2); - graph << target_hint << arm_compute::graph::Tensor(TensorInfo(TensorShape(224U, 224U, 3U, 1U), 1, DataType::QASYMM8, in_quant_info), get_weights_accessor(data_path, "/cnn_data/mobilenet_qasymm8_model/" + input)) @@ -168,6 +165,9 @@ public: << ReshapeLayer(TensorShape(1001U)) << SoftmaxLayer() << arm_compute::graph::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 { |