aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2022-02-08 10:58:56 +0000
committerGian Marco Iodice <gianmarco.iodice@arm.com>2022-02-10 14:45:14 +0000
commit616f8eb38e6b68001b162a88ad404d04f7b32fd2 (patch)
treee18f72fcc2568df4f199f54b9fb6dd5de00bbcf7
parentbb6877ad4542943e718ac48727f238600fb8257c (diff)
downloadComputeLibrary-616f8eb38e6b68001b162a88ad404d04f7b32fd2.tar.gz
Fix performance regression on the first layer of convolution-based model
Change-Id: Ia6d7282ee0c91c14dc71505a9f72f7d412d12055 Signed-off-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7088 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
-rw-r--r--src/gpu/cl/operators/ClConv2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/cl/operators/ClConv2d.cpp b/src/gpu/cl/operators/ClConv2d.cpp
index 3bb92de843..71f83780c5 100644
--- a/src/gpu/cl/operators/ClConv2d.cpp
+++ b/src/gpu/cl/operators/ClConv2d.cpp
@@ -271,7 +271,7 @@ ConvolutionMethod ClConv2d::get_convolution_method(const ITensorInfo *src, const
// Direct convolution case
if(is_direct_valid)
{
- if((is_large_kernel_sz && workload_gte_8192) || (is_ofm_lte_8 && is_ifm_ge_16))
+ if((is_large_kernel_sz && workload_gte_8192 && is_ifm_ge_16) || (is_ofm_lte_8 && is_ifm_ge_16))
{
return ConvolutionMethod::DIRECT;
}