diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-08-02 09:42:27 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 6106a4de410e7cc59515dd889e159bee7aa45d35 (patch) | |
tree | 80dd491ae3865dd00a8e272bbf66b72274a0efe2 /tests/validation_new/CL/SoftmaxLayer.cpp | |
parent | d8e765ba79772ecc3deda89ae3adab903c744296 (diff) | |
download | ComputeLibrary-6106a4de410e7cc59515dd889e159bee7aa45d35.tar.gz |
COMPMID-415: Use absolute and relative tolerance
Change-Id: Ib779fa307e05fa67172ddaf521239b4c746debc8
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82229
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation_new/CL/SoftmaxLayer.cpp')
-rw-r--r-- | tests/validation_new/CL/SoftmaxLayer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/validation_new/CL/SoftmaxLayer.cpp b/tests/validation_new/CL/SoftmaxLayer.cpp index 3edc7b2d6e..d13236a2f9 100644 --- a/tests/validation_new/CL/SoftmaxLayer.cpp +++ b/tests/validation_new/CL/SoftmaxLayer.cpp @@ -44,10 +44,10 @@ namespace validation namespace { /** Tolerance for float operations */ -constexpr float tolerance_f16 = 0.002f; -constexpr float tolerance_f32 = 0.000001f; +constexpr AbsoluteTolerance<float> tolerance_f16(0.002f); +constexpr AbsoluteTolerance<float> tolerance_f32(0.000001f); /** Tolerance for fixed point operations */ -constexpr int8_t tolerance_fixed_point = 2; +constexpr AbsoluteTolerance<int8_t> tolerance_fixed_point(2); /** CNN data types */ const auto CNNDataTypes = framework::dataset::make("DataType", |