diff options
Diffstat (limited to 'src/core/CL/cl_kernels/activation_helpers.h')
-rw-r--r-- | src/core/CL/cl_kernels/activation_helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CL/cl_kernels/activation_helpers.h b/src/core/CL/cl_kernels/activation_helpers.h index dfab082381..9d4af8497a 100644 --- a/src/core/CL/cl_kernels/activation_helpers.h +++ b/src/core/CL/cl_kernels/activation_helpers.h @@ -70,7 +70,7 @@ inline TYPE lrelu_op(TYPE x) // Soft RELU Activation inline TYPE srelu_op(TYPE x) { - return LOG_OP(ADD_OP((TYPE)CONST_ONE, EXP_OP(x))); + return CONVERT(LOG_OP(ADD_OP((VEC_DATA_TYPE(float, VEC_SIZE))CONST_ONE, EXP_OP(CONVERT(x, VEC_DATA_TYPE(float, VEC_SIZE))))), TYPE); } // Absolute Activation inline TYPE abs_op(TYPE x) |