From ad411e077ef6662f1fa48542eacaa43552b12e65 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 31 Jul 2020 15:28:18 +0100 Subject: COMPMID-3526: LOGISTIC support for values bigger than [-40.f,40.f] With this patch: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3178 we can support any range of values since we handle overflows by clamping. This means that for large negative values we'll get 0 and for possitive inf which aligns with math.h implementation. Change-Id: I01e92010bb0c514c12b19da97e369a75d782cac7 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3639 Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins --- tests/validation/Helpers.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 7bc53e7228..325cc0042e 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -90,7 +90,6 @@ std::pair get_activation_layer_test_bounds(ActivationLayerInfo::Activation case DataType::F32: switch(activation) { - case ActivationLayerInfo::ActivationFunction::LOGISTIC: case ActivationLayerInfo::ActivationFunction::SOFT_RELU: // Reduce range as exponent overflows bounds = std::make_pair(-40.f, 40.f); -- cgit v1.2.1