From 415a2bfef929439783dfdba03fd67e9701c4822c Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 30 Jul 2018 12:05:25 +0100 Subject: 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 Reviewed-by: Gian Marco Iodice Tested-by: Jenkins --- examples/graph_alexnet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/graph_alexnet.cpp') diff --git a/examples/graph_alexnet.cpp b/examples/graph_alexnet.cpp index 944a435c3b..8394587c60 100644 --- a/examples/graph_alexnet.cpp +++ b/examples/graph_alexnet.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!"); -- cgit v1.2.1