aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_squeezenet_v1_1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graph_squeezenet_v1_1.cpp')
-rw-r--r--examples/graph_squeezenet_v1_1.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/graph_squeezenet_v1_1.cpp b/examples/graph_squeezenet_v1_1.cpp
index 631f123e63..bf6324698f 100644
--- a/examples/graph_squeezenet_v1_1.cpp
+++ b/examples/graph_squeezenet_v1_1.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!");