From 7333e1f10f5da9dc67b511d326121a843771a107 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Thu, 8 Oct 2020 10:25:49 +0100 Subject: COMPMID-3732: Remove OpenCL padding from CLPoolingLayer - Refactor pooling layer kernels on OpenCL (F32/F16/QASYMM8) to avoid padding and improve performance - Add test for checking zero padding requirement - Fix issue with extracting the index. The issue was caused by the padding passed at compile time - auto_init indices tensor in CLPoolingLayerKernel Change-Id: I1ae5a2ef8c4ce787c80dcd73e35c17bb34623cb5 Signed-off-by: Gian Marco Iodice Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4188 Reviewed-by: Michele Di Giorgio Reviewed-by: Giorgio Arena Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- src/core/CL/CLKernelLibrary.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/CL/CLKernelLibrary.cpp') diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp index 0b59ec8a71..0d0b7f69cb 100644 --- a/src/core/CL/CLKernelLibrary.cpp +++ b/src/core/CL/CLKernelLibrary.cpp @@ -326,8 +326,7 @@ const std::map CLKernelLibrary::_kernel_program_map = { "pooling_layer_7", "pooling_layer.cl" }, { "pooling_layer_MxN_nchw", "pooling_layer.cl" }, { "pooling_layer_MxN_nhwc", "pooling_layer.cl" }, - { "pooling_layer_2_nhwc_indices_fp32", "pooling_layer.cl" }, - { "pooling_layer_2_nhwc_indices_fp16", "pooling_layer.cl" }, + { "pooling_layer_2x2_nhwc", "pooling_layer.cl" }, { "pooling_layer_2_nchw_indices_fp32", "pooling_layer.cl" }, { "pooling_layer_2_nchw_indices_fp16", "pooling_layer.cl" }, { "pooling_layer_MxN_quantized_nhwc", "pooling_layer_quantized.cl" }, -- cgit v1.2.1