aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/activation_quant_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CL/cl_kernels/activation_quant_helpers.h')
-rw-r--r--src/core/CL/cl_kernels/activation_quant_helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CL/cl_kernels/activation_quant_helpers.h b/src/core/CL/cl_kernels/activation_quant_helpers.h
index 402e7ac41f..0e4eb2b32e 100644
--- a/src/core/CL/cl_kernels/activation_quant_helpers.h
+++ b/src/core/CL/cl_kernels/activation_quant_helpers.h
@@ -41,7 +41,7 @@ inline TYPE relu_op(TYPE x)
// Bounded RELU Activation
inline TYPE brelu_op(TYPE x)
{
- return min((TYPE)A_VAL, max(CONST_0, x));
+ return min((TYPE)A_VAL, max((TYPE)CONST_0, x));
}
// Lower Upper Bounded RELU Activation
inline TYPE lu_brelu_op(TYPE x)