From 6a98a6e322bfb03f98ac9c4dfdc932ec4bea1fd7 Mon Sep 17 00:00:00 2001 From: Usama Arif Date: Fri, 10 May 2019 17:07:27 +0100 Subject: COMPMID-2194: Refactor activation function macro in OpenCL. Change all activation calls to macro from activation_float_helpers.h The different kernels now call the macro from activation_float_helpers.h. activation_helpers.h is now removed. Change-Id: I2e1314c6bc891809e88590d99e048072541cca14 Signed-off-by: Usama Arif Reviewed-on: https://review.mlplatform.org/c/1123 Comments-Addressed: Arm Jenkins Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins --- arm_compute/core/Types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arm_compute/core/Types.h') diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index 99ec44d5e0..c6c2728407 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -1479,7 +1479,8 @@ public: ABS, /**< Absolute ( \f$ f(x)= |x| \f$ ) */ SQUARE, /**< Square ( \f$ f(x)= x^2 \f$ )*/ SQRT, /**< Square root ( \f$ f(x) = \sqrt{x} \f$ )*/ - LINEAR /**< Linear ( \f$ f(x)= ax + b \f$ ) */ + LINEAR, /**< Linear ( \f$ f(x)= ax + b \f$ ) */ + IDENTITY /**< Identity ( \f$ f(x)= x \f$ ) */ }; ActivationLayerInfo() = default; @@ -1516,7 +1517,7 @@ public: } private: - ActivationFunction _act = { ActivationLayerInfo::ActivationFunction::LOGISTIC }; + ActivationFunction _act = { ActivationLayerInfo::ActivationFunction::IDENTITY }; float _a = {}; float _b = {}; bool _enabled = { false }; -- cgit v1.2.1