aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2020-02-28 17:31:27 +0000
committerMichele Di Giorgio <michele.digiorgio@arm.com>2020-03-02 09:15:51 +0000
commitbb1ad0c29fb941c93708ff4b2d211af3af51d213 (patch)
treed0a99e0f6ef39fefbbb8661fb7608f06d642bb4c /arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h
parent690599df6f933ed2ca46496261fb441827324b03 (diff)
downloadComputeLibrary-bb1ad0c29fb941c93708ff4b2d211af3af51d213.tar.gz
COMPMID-3165: Remove padding from NEYOLOLayerKernel
Change-Id: I74338c3b0a173337cd1c8d89cb98217b7c943d5b Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2814 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h')
-rw-r--r--arm_compute/core/NEON/kernels/NEYOLOLayerKernel.h24
1 files changed, 7 insertions, 17 deletions
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 <typename T, int S>
+ 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 <typename T>
+ 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.