aboutsummaryrefslogtreecommitdiff
path: root/examples/graph_alexnet.cpp
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2018-05-09 14:11:34 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:51:37 +0000
commitc13021e335b3e395c9d1a3a9935baedb42aebf08 (patch)
tree5ee995961cea6b76fe4c1aee2e60920ee845a83e /examples/graph_alexnet.cpp
parente29e0d4292a2e569ecad340438942632ae6a92e4 (diff)
downloadComputeLibrary-c13021e335b3e395c9d1a3a9935baedb42aebf08.tar.gz
COMPMID-1109 - Enabling Winograd in the graph when possible
Change-Id: I524abd28188995ae9c7a43b189b1eb2d7546be93 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/130576 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'examples/graph_alexnet.cpp')
-rw-r--r--examples/graph_alexnet.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/graph_alexnet.cpp b/examples/graph_alexnet.cpp
index d654f9ece9..291a586315 100644
--- a/examples/graph_alexnet.cpp
+++ b/examples/graph_alexnet.cpp
@@ -57,10 +57,9 @@ public:
Target target_hint = set_target_hint(target);
// TODO (geopin01) : Get GPU target somehow and set gemm also for midgard ?
- const bool is_gemm_convolution5x5 = (target_hint == Target::NEON);
- const bool is_winograd_convolution3x3 = target_hint == Target::CL;
- ConvolutionMethod convolution_5x5_hint = is_gemm_convolution5x5 ? ConvolutionMethod::GEMM : ConvolutionMethod::DIRECT;
- ConvolutionMethod convolution_3x3_hint = is_winograd_convolution3x3 ? ConvolutionMethod::WINOGRAD : ConvolutionMethod::GEMM;
+ const bool is_neon = (target_hint == Target::NEON);
+ ConvolutionMethod convolution_5x5_hint = is_neon ? ConvolutionMethod::GEMM : ConvolutionMethod::DIRECT;
+ ConvolutionMethod convolution_3x3_hint = is_neon ? ConvolutionMethod::GEMM : ConvolutionMethod::DEFAULT;
// Parse arguments
if(argc < 2)