From e2428a013014feac81af60f65f9b16cc244327aa Mon Sep 17 00:00:00 2001 From: Usama Arif Date: Thu, 9 May 2019 11:03:17 +0100 Subject: COMPMID-2194: Refactor activation function macro in OpenCL. New Macros for activation. This commit contains the new macros for activation. Only the activation_layer utilizes the new macros in this commit. Change-Id: I2fa8567cc876e8cb67a1e876652bc348b7ed23ea Signed-off-by: Usama Arif Reviewed-on: https://review.mlplatform.org/c/1104 Comments-Addressed: Arm Jenkins Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins --- src/core/CL/cl_kernels/batchnormalization_layer.cl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/CL/cl_kernels/batchnormalization_layer.cl') diff --git a/src/core/CL/cl_kernels/batchnormalization_layer.cl b/src/core/CL/cl_kernels/batchnormalization_layer.cl index 60307bc9a7..0bb6cd7c5f 100644 --- a/src/core/CL/cl_kernels/batchnormalization_layer.cl +++ b/src/core/CL/cl_kernels/batchnormalization_layer.cl @@ -32,7 +32,9 @@ #if defined(VEC_SIZE) && defined(DATA_TYPE) #if defined(FUSED_ACTIVATION) -#include "activation_layer.cl" +#define SELECT_TYPE VEC_DATA_TYPE(SELECT_DATA_TYPE, VEC_SIZE) +#define TYPE VEC_DATA_TYPE(DATA_TYPE, VEC_SIZE) +#include "activation_helpers.h" #define ACTIVATION_FUNC(x) ACTIVATION_OP(FUSED_ACTIVATION, x) #else /* defined(FUSED_ACTIVATION) */ #define ACTIVATION_FUNC(x) (x) -- cgit v1.2.1