aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2020-07-31 15:28:18 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2020-08-03 10:21:22 +0000
commitad411e077ef6662f1fa48542eacaa43552b12e65 (patch)
treea38ead8326c7b5aa7abeabb3e0971fee030da108
parent3b64e3e78c166773fea680afb4829d886e90552d (diff)
downloadComputeLibrary-ad411e077ef6662f1fa48542eacaa43552b12e65.tar.gz
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 <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3639 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--tests/validation/Helpers.h1
1 files changed, 0 insertions, 1 deletions
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<T, T> 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);