aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2018-10-18 14:30:28 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:55:45 +0000
commit20ff84d333e73c62592cab339f4648c4b706c65f (patch)
tree823587d7a011665c089018eb510fdc099137b85e /examples
parent7c75ba0316510ab46bfb56e7b575e72ec1668c46 (diff)
downloadComputeLibrary-20ff84d333e73c62592cab339f4648c4b706c65f.tar.gz
COMPMID-1451 - Enabled NHWC in AlexNet, InceptionV3 and InceptionV4
Enabled NHWC as default data layout in AlexNet, InceptionV3 and InceptionV4 on NEON Change-Id: I205ad7a1f5dbf482340182de4fac8f3a24ef2705 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/154141 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: bsgcomp <bsgcomp@arm.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/graph_alexnet.cpp6
-rw-r--r--examples/graph_inception_v3.cpp6
-rw-r--r--examples/graph_inception_v4.cpp6
3 files changed, 0 insertions, 18 deletions
diff --git a/examples/graph_alexnet.cpp b/examples/graph_alexnet.cpp
index 97788d8cd9..c607672e5b 100644
--- a/examples/graph_alexnet.cpp
+++ b/examples/graph_alexnet.cpp
@@ -54,12 +54,6 @@ 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), "QASYMM8 not supported for this graph");
diff --git a/examples/graph_inception_v3.cpp b/examples/graph_inception_v3.cpp
index d51be62f9f..6a381a1749 100644
--- a/examples/graph_inception_v3.cpp
+++ b/examples/graph_inception_v3.cpp
@@ -54,12 +54,6 @@ 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), "QASYMM8 not supported for this graph");
ARM_COMPUTE_EXIT_ON_MSG(common_params.data_type == DataType::F16 && common_params.target == Target::NEON, "F16 NEON not supported for this graph");
diff --git a/examples/graph_inception_v4.cpp b/examples/graph_inception_v4.cpp
index b64f176c17..77ef54cf98 100644
--- a/examples/graph_inception_v4.cpp
+++ b/examples/graph_inception_v4.cpp
@@ -54,12 +54,6 @@ 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), "QASYMM8 not supported for this graph");
ARM_COMPUTE_EXIT_ON_MSG(common_params.data_type == DataType::F16 && common_params.target == Target::NEON, "F16 NEON not supported for this graph");