diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2021-02-08 11:51:48 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-02-08 13:30:15 +0000 |
commit | afc9c3df7600dcecf12d3d3a4686d2008502a813 (patch) | |
tree | 5ba85172a5510886d341b50d9ee7c10ab5105567 | |
parent | 1928904316e80ba0549b94ae1f905d7e79bda812 (diff) | |
download | ComputeLibrary-afc9c3df7600dcecf12d3d3a4686d2008502a813.tar.gz |
Fix tolerance for NEON RNNLayer
Hide FP16 tolerances for NEON backend if FP16 vector arithmetic not supported
Resolves: COMPMID-4239
Change-Id: Ib6aad2de8a0ea621e2fdb673b9bab92c0520acd5
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5022
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r-- | tests/validation/NEON/RNNLayer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/validation/NEON/RNNLayer.cpp b/tests/validation/NEON/RNNLayer.cpp index f8559ff88e..21e2052713 100644 --- a/tests/validation/NEON/RNNLayer.cpp +++ b/tests/validation/NEON/RNNLayer.cpp @@ -39,9 +39,11 @@ namespace validation { namespace { -RelativeTolerance<float> tolerance_f32(0.001f); /**< Relative tolerance value for comparing reference's output against implementation's output for DataType:F32 */ -RelativeTolerance<half> tolerance_f16(half(0.1)); /**< Relative tolerance value for comparing reference's output against implementation's output for DataType:F16 */ -constexpr float abs_tolerance_f16(0.02f); /**< Absolute tolerance value for comparing reference's output against implementation's output for DataType:F16 */ +RelativeTolerance<float> tolerance_f32(0.001f); /**< Relative tolerance value for comparing reference's output against implementation's output for DataType:F32 */ +#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC +RelativeTolerance<half> tolerance_f16(half(0.1)); /**< Relative tolerance value for comparing reference's output against implementation's output for DataType:F16 */ +constexpr float abs_tolerance_f16(0.02f); /**< Absolute tolerance value for comparing reference's output against implementation's output for DataType:F16 */ +#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */ } // namespace TEST_SUITE(NEON) |