From a8aef2916379402e241d9f2c5e0faf3f99c860f7 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Mon, 14 May 2018 14:21:39 +0100 Subject: COMPMID-792 - Re-enabled Winograd on NEON in all graph examples. Since now the input transform can be multi-threaded, I re-ebaled Winograd in all graph examples Change-Id: I39ef78243bb47fdae135e18dcae2102af0675b3b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/131048 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- src/runtime/CL/functions/CLConvolutionLayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/runtime/CL/functions/CLConvolutionLayer.cpp') diff --git a/src/runtime/CL/functions/CLConvolutionLayer.cpp b/src/runtime/CL/functions/CLConvolutionLayer.cpp index 3d4fb113b2..faec4bbf5a 100644 --- a/src/runtime/CL/functions/CLConvolutionLayer.cpp +++ b/src/runtime/CL/functions/CLConvolutionLayer.cpp @@ -123,7 +123,9 @@ ConvolutionMethod CLConvolutionLayer::get_convolution_method(const ITensorInfo * ARM_COMPUTE_UNUSED(weights_info); ARM_COMPUTE_UNUSED(gpu_target); - if(dilation != Size2D(1U, 1U)) + const size_t idx_c = get_data_layout_dimension_index(input->data_layout(), DataLayoutDimension::CHANNEL); + + if(dilation != Size2D(1U, 1U) || (input->dimension(idx_c) < 16)) { return ConvolutionMethod::GEMM; } -- cgit v1.2.1