From 91654c45cf1de5f41127536a0fdd310c17fdfc8e Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Wed, 5 Jul 2017 11:32:17 +0100 Subject: COMPMID-421: Added FP16 support in ActivationLayer. Change-Id: I7ba573b19d56e3c87996edb5218a00e5bfca451e Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79755 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- arm_compute/core/NEON/kernels/NEActivationLayerKernel.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'arm_compute/core/NEON/kernels/NEActivationLayerKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h b/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h index e995f1e5e0..2c88debfb4 100644 --- a/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h +++ b/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h @@ -27,6 +27,10 @@ #include "arm_compute/core/FixedPoint.h" #include "arm_compute/core/NEON/INEKernel.h" +#ifdef ARM_COMPUTE_ENABLE_FP16 +#include +#endif /* ARM_COMPUTE_ENABLE_FP16 */ + namespace arm_compute { class ITensor; @@ -72,6 +76,14 @@ private: */ template typename std::enable_if::value, void>::type activation(const Window &window); +#ifdef ARM_COMPUTE_ENABLE_FP16 + /** Function to apply an activation function on a tensor. + * + * @param[in] window Region on which to execute the kernel + */ + template + typename std::enable_if::value, void>::type activation(const Window &window); +#endif /* ARM_COMPUTE_ENABLE_FP16 */ /** Function to apply an activation function on a tensor. * * @param[in] window Region on which to execute the kernel -- cgit v1.2.1