aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON/LSTMLayer.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-06 18:08:04 +0000
committerManuel Bottini <manuel.bottini@arm.com>2019-02-07 16:07:16 +0000
commit4f85982a55ae417edde6864304aeb1d69972973e (patch)
tree094f88d2138ee20e57cfe482a89cd68833e91954 /tests/validation/NEON/LSTMLayer.cpp
parentebc3a90721fe4a41b8e141466894d4d7185c01b7 (diff)
downloadComputeLibrary-4f85982a55ae417edde6864304aeb1d69972973e.tar.gz
COMPMID-1923: Input is ignored if peephole optimization is enabled in
LSTM Change-Id: I9e6c4fe279aafaf7f77af453785a8f677868a25a Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/639 Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/NEON/LSTMLayer.cpp')
-rw-r--r--tests/validation/NEON/LSTMLayer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/validation/NEON/LSTMLayer.cpp b/tests/validation/NEON/LSTMLayer.cpp
index 3693d4f20d..5dfd32b8e5 100644
--- a/tests/validation/NEON/LSTMLayer.cpp
+++ b/tests/validation/NEON/LSTMLayer.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 ARM Limited.
+ * Copyright (c) 2018-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -39,7 +39,7 @@ namespace validation
{
namespace
{
-RelativeTolerance<float> tolerance_f32(0.001f);
+RelativeTolerance<float> tolerance_f32(0.00001f);
RelativeTolerance<half> tolerance_f16(half(0.1));
} // namespace
@@ -160,6 +160,7 @@ FIXTURE_DATA_TEST_CASE(RunSmall, NELSTMLayerFixture<float>, framework::DatasetMo
{
// Validate output
validate(Accessor(_target), _reference, tolerance_f32);
+ validate(Accessor(_target_scratch), _reference_scratch, tolerance_f32);
}
TEST_SUITE_END() // FP32
@@ -171,6 +172,7 @@ FIXTURE_DATA_TEST_CASE(RunSmall, NELSTMLayerFixture<half>, framework::DatasetMod
{
// Validate output
validate(Accessor(_target), _reference, tolerance_f16);
+ validate(Accessor(_target_scratch), _reference_scratch, tolerance_f16);
}
TEST_SUITE_END() // FP16
#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */