From bb1ad0c29fb941c93708ff4b2d211af3af51d213 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 28 Feb 2020 17:31:27 +0000 Subject: COMPMID-3165: Remove padding from NEYOLOLayerKernel Change-Id: I74338c3b0a173337cd1c8d89cb98217b7c943d5b Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2814 Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h | 24 +++++++---------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h b/arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h index b88fcf4567..0fd3f8ce67 100644 --- a/arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h +++ b/arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -77,28 +77,18 @@ public: void run(const Window &window, const ThreadInfo &info) override; private: -#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC - /** Function to run YOLO layer on fp16 + /** Function to run YOLO layer * * @param[in] window Region on which to execute the kernel. */ - void yolo_layer_fp16_nchw(const Window &window); - /** Function to run batch normalization on fp16 on tensors with NHWC format + template + void yolo_layer_nchw(const Window &window); + /** Function to run YOLO layer on tensors with NHWC format * * @param[in] window Region on which to execute the kernel. */ - void yolo_layer_fp16_nhwc(const Window &window); -#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */ - /** Function to run YOLO layer on fp32 - * - * @param[in] window Region on which to execute the kernel. - */ - void yolo_layer_fp32_nchw(const Window &window); - /** Function to run YOLO layer on fp32 on tensors with NHWC format - * - * @param[in] window Region on which to execute the kernel. - */ - void yolo_layer_fp32_nhwc(const Window &window); + template + void yolo_layer_nhwc(const Window &window); /** Common signature for all the yolo layer functions * * @param[in] window Region on which to execute the kernel. -- cgit v1.2.1