From c4d45559b00cdbdca80296c23be5939439fbbbd0 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 19 Oct 2020 12:41:30 +0100 Subject: COMPMID-3853: Decouple NEActivationLayer Decouple datatypes and remove Activation template. Binary size dropped by 25Kb. Signed-off-by: Michalis Spyrou Change-Id: I32c207db124895fee25b56437f9495403315b867 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4217 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- .../core/NEON/kernels/NEActivationLayerKernel.h | 36 +--------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'arm_compute/core/NEON') diff --git a/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h b/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h index 325647bd66..a62f34cd58 100644 --- a/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h +++ b/arm_compute/core/NEON/kernels/NEActivationLayerKernel.h @@ -79,41 +79,7 @@ public: void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info) override; private: - using ActivationFunction = ActivationLayerInfo::ActivationFunction; - /** Common signature for all the specialised @ref NEActivationLayerKernel functions - * - * @param[in] window Region on which to execute the kernel. - */ - using ActivationFunctionExecutorPtr = void (NEActivationLayerKernel::*)(const ITensor *src, ITensor *dst, const Window &window); - /** 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 ITensor *src, ITensor *dst, const Window &window); - /** 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 ITensor *src, ITensor *dst, const Window &window); - /** 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 ITensor *src, ITensor *dst, const Window &window); - /** 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 ITensor *src, ITensor *dst, const Window &window); - -private: - ActivationFunctionExecutorPtr _func; - ActivationLayerInfo _act_info; + ActivationLayerInfo _act_info; }; } // namespace arm_compute #endif /*ARM_COMPUTE_NEACTIVATIONLAYERKERNEL_H */ -- cgit v1.2.1