diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-12-03 14:30:05 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-01-14 17:53:22 +0000 |
commit | 5a5945387e70f62e6e1e95a177fae261d7570443 (patch) | |
tree | ff8bd61c2e071b5a0b923f4a0d1bef72486435e9 /arm_compute/core/NEON/kernels/NEActivationLayerKernel.h | |
parent | dea2d2d58fe3a742e6f66fe50befbe0044e15ad1 (diff) | |
download | ComputeLibrary-5a5945387e70f62e6e1e95a177fae261d7570443.tar.gz |
COMPMID-1809: Remove padding in NEGEMMConvolutionLayer 64-bit path.
Change-Id: I1806591a2c73a1f057f13d8c6107d7b9796a82c8
Reviewed-on: https://review.mlplatform.org/370
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/NEActivationLayerKernel.h')
-rw-r--r-- | arm_compute/core/NEON/kernels/NEActivationLayerKernel.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h b/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h index 0290e32085..447f4880ee 100644 --- a/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h +++ b/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -26,6 +26,7 @@ #include "arm_compute/core/NEON/INEKernel.h" #include "arm_compute/core/QAsymm8.h" +#include "arm_compute/core/utils/misc/Traits.h" #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC #include <arm_fp16.h> @@ -89,15 +90,8 @@ private: * @param[in] window Region on which to execute the kernel */ template <ActivationLayerInfo::ActivationFunction F, typename T> - typename std::enable_if<std::is_same<T, float>::value, void>::type activation(const Window &window); -#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC - /** Function to apply an activation function on a tensor. - * - * @param[in] window Region on which to execute the kernel - */ - template <ActivationLayerInfo::ActivationFunction F, typename T> - typename std::enable_if<std::is_same<T, float16_t>::value, void>::type activation(const Window &window); -#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */ + typename std::enable_if<arm_compute::utils::traits::is_floating_point<T>::value, void>::type + activation(const Window &window); /** Function to apply an activation function on a tensor. * * @param[in] window Region on which to execute the kernel |