aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Helpers.h
diff options
context:
space:
mode:
authorMilos Puzovic <Milos.Puzovic@arm.com>2022-10-28 00:09:32 +0100
committerViet-Hoa Do <viet-hoa.do@arm.com>2022-11-01 11:08:33 +0000
commit199982fc01bcce10120cd6df03d11829a215c85c (patch)
tree5a8884fa7a216edf8c18b5cfeb8b1537935b5e80 /tests/validation/Helpers.h
parent4b5f6efef15efd79727a58c520c92c9e7a084256 (diff)
downloadComputeLibrary-199982fc01bcce10120cd6df03d11829a215c85c.tar.gz
Add threshold for floating-point SOFT_RELU activation
Added missing threshold for calculating SOFT_RELU when SVE and CL implementations are used. As a result removed from the testing bounds for input values that were set to be in the interval [-40, 40]. Resolves: COMPMID-5658 Signed-off-by: Milos Puzovic <Milos.Puzovic@arm.com> Change-Id: I3d14df60125e36e4eb85aeb222f4fb0cc5741521 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8536 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com> Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/Helpers.h')
-rw-r--r--tests/validation/Helpers.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h
index a8804ad7e7..cbbdfbb6c4 100644
--- a/tests/validation/Helpers.h
+++ b/tests/validation/Helpers.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2021 Arm Limited.
+ * Copyright (c) 2017-2022 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -91,10 +91,6 @@ std::pair<T, T> get_activation_layer_test_bounds(ActivationLayerInfo::Activation
case DataType::F32:
switch(activation)
{
- case ActivationLayerInfo::ActivationFunction::SOFT_RELU:
- // Reduce range as exponent overflows
- bounds = std::make_pair(-40.f, 40.f);
- break;
case ActivationLayerInfo::ActivationFunction::SQRT:
// Reduce range as sqrt should take a non-negative number
bounds = std::make_pair(0.f, 255.f);