From 57016a419c89e737216fd12711e6eba7e030061e Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 16 Jan 2019 12:54:29 +0000 Subject: COMPMID-1710: Fixes substitution errors in bare_metal build. Change-Id: Icf76503b4d01e90a682b9bed0798a8a635840e46 Reviewed-on: https://review.mlplatform.org/528 Reviewed-by: Michalis Spyrou Tested-by: Arm Jenkins --- src/core/NEON/kernels/NEActivationLayerKernel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/NEON/kernels/NEActivationLayerKernel.cpp') diff --git a/src/core/NEON/kernels/NEActivationLayerKernel.cpp b/src/core/NEON/kernels/NEActivationLayerKernel.cpp index 97cb9ceb2e..7565a1214c 100644 --- a/src/core/NEON/kernels/NEActivationLayerKernel.cpp +++ b/src/core/NEON/kernels/NEActivationLayerKernel.cpp @@ -371,17 +371,17 @@ typename std::enable_if::value, void>::type NEActivat if(act == ActivationFunction::RELU) { tmp = std::max(const_0, in); - tmp = std::max(0, std::min(static_cast(tmp * s + o), 255)); + tmp = std::max(0, std::min(tmp * s + o, 255)); } else if(act == ActivationFunction::BOUNDED_RELU) { tmp = std::min(a, std::max(const_0, in)); - tmp = std::max(0, std::min(static_cast(tmp * s + o), 255)); + tmp = std::max(0, std::min(tmp * s + o, 255)); } else if(act == ActivationFunction::LU_BOUNDED_RELU) { tmp = std::min(a, std::max(b, in)); - tmp = std::max(0, std::min(static_cast(tmp * s + o), 255)); + tmp = std::max(0, std::min(tmp * s + o, 255)); } else { -- cgit v1.2.1