aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_inception_v4.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-07-30 12:05:25 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit415a2bfef929439783dfdba03fd67e9701c4822c (patch)
tree1068a197ea9830e0d154ff3a348644f21a4af1e6 /examples/graph_inception_v4.cpp
parent68a3f56627b04acdefebe67d645727dd83889766 (diff)
downloadComputeLibrary-415a2bfef929439783dfdba03fd67e9701c4822c.tar.gz
COMPMID-1432: Enable by default NHWC in graph examples
Change-Id: I2240b6a6430cb1d261458343b2900cc1f16ac414 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/141861 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/graph_inception_v4.cpp')
-rw-r--r--examples/graph_inception_v4.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/graph_inception_v4.cpp b/examples/graph_inception_v4.cpp
index b61acfcb3f..1ca8c5fbea 100644
--- a/examples/graph_inception_v4.cpp
+++ b/examples/graph_inception_v4.cpp
@@ -58,6 +58,12 @@ public:
return false;
}
+ // Set default layout if needed
+ if(!common_opts.data_layout->is_set() && common_params.target == Target::NEON)
+ {
+ common_params.data_layout = DataLayout::NCHW;
+ }
+
// Checks
ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "Unsupported data type!");