diff options
author | steniu01 <steven.niu@arm.com> | 2017-08-25 17:18:01 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 3e05e4e85912e745b8555102e1bcef13478d2ceb (patch) | |
tree | d4ac2e56bcbcbb2ca73b990deeeb26aa2fa1f73d /tests/validation/CL/SoftmaxLayer.cpp | |
parent | 09e4f98e31a9bb77bebeccd59c70f0715ab2c292 (diff) | |
download | ComputeLibrary-3e05e4e85912e745b8555102e1bcef13478d2ceb.tar.gz |
COMPMID-516 Change the CL CNN validation functions to use relative
tolerance error
Change-Id: Iec6347af26ea2a83c911f5fe10e6048e8a2a47ba
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85381
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/validation/CL/SoftmaxLayer.cpp')
-rw-r--r-- | tests/validation/CL/SoftmaxLayer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/validation/CL/SoftmaxLayer.cpp b/tests/validation/CL/SoftmaxLayer.cpp index c4a9970b78..6a22eb1bcc 100644 --- a/tests/validation/CL/SoftmaxLayer.cpp +++ b/tests/validation/CL/SoftmaxLayer.cpp @@ -44,8 +44,9 @@ namespace validation namespace { /** Tolerance for float operations */ -constexpr AbsoluteTolerance<float> tolerance_f16(0.002f); -constexpr AbsoluteTolerance<float> tolerance_f32(0.000001f); +RelativeTolerance<half_float::half> tolerance_f16(half_float::half(0.2)); +RelativeTolerance<float> tolerance_f32(0.001f); + /** Tolerance for fixed point operations */ constexpr AbsoluteTolerance<int8_t> tolerance_fixed_point(2); |