From b38ed40d34b6c176dc47884419e9d367452b7fe0 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Fri, 26 Jul 2019 13:45:48 +0100 Subject: [PATCH] MLCE-130: Enabled optimized path for DepthwiseConv 5x5 Change-Id: I5cd90121e5fe1b49b394ee6f5a87e86520a30119 Signed-off-by: Pablo Tello --- src/backends/neon/workloads/NeonDepthwiseConvolutionWorkload.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backends/neon/workloads/NeonDepthwiseConvolutionWorkload.cpp b/src/backends/neon/workloads/NeonDepthwiseConvolutionWorkload.cpp index bfe4dda..400ae18 100644 --- a/src/backends/neon/workloads/NeonDepthwiseConvolutionWorkload.cpp +++ b/src/backends/neon/workloads/NeonDepthwiseConvolutionWorkload.cpp @@ -114,8 +114,10 @@ NeonDepthwiseConvolutionWorkload::NeonDepthwiseConvolutionWorkload( arm_compute::PadStrideInfo padStrideInfo = BuildArmComputePadStrideInfo(m_Data.m_Parameters); // Check for optimisation opportunities. - bool use3x3Optimisation = (weightInfo.GetShape()[2] == 3) && (weightInfo.GetShape()[3] == 3); - if (use3x3Optimisation) + const bool use3x3Optimisation = (weightInfo.GetShape()[2] == 3) && (weightInfo.GetShape()[3] == 3); + const bool use5x5Optimisation = (weightInfo.GetShape()[2] == 5) && (weightInfo.GetShape()[3] == 5); + + if (use3x3Optimisation||use5x5Optimisation) { m_pDepthwiseConvolutionLayer = std::make_unique(); static_cast( -- 2.7.4