diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-07-21 15:55:28 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | e49e26613264842f91d29a32be3a226a0d6adb42 (patch) | |
tree | 78d88bded1f178d06b9dbfe3950ba716ef229599 /tests/validation/Validation.cpp | |
parent | 27b386cb7596542a3296c32e41f7a5168b4d53be (diff) | |
download | ComputeLibrary-e49e26613264842f91d29a32be3a226a0d6adb42.tar.gz |
COMPMID-415: Use half_float library for F16
3RDPARTY_UPDATE
Change-Id: Iee572e18d5b1df71300d738cc8690f49d7203d5c
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81353
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/Validation.cpp')
-rw-r--r-- | tests/validation/Validation.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/validation/Validation.cpp b/tests/validation/Validation.cpp index 14ee98a96b..a13eeb0b85 100644 --- a/tests/validation/Validation.cpp +++ b/tests/validation/Validation.cpp @@ -23,16 +23,16 @@ */ #include "Validation.h" -#include "IAccessor.h" -#include "RawTensor.h" -#include "TypePrinter.h" -#include "Utils.h" - #include "arm_compute/core/Coordinates.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/FixedPoint.h" #include "arm_compute/core/TensorShape.h" #include "arm_compute/runtime/Tensor.h" +#include "tests/IAccessor.h" +#include "tests/RawTensor.h" +#include "tests/TypePrinter.h" +#include "tests/Utils.h" +#include "tests/validation/half.h" #include <array> #include <cmath> @@ -40,10 +40,6 @@ #include <cstdint> #include <iomanip> -#ifdef ARM_COMPUTE_ENABLE_FP16 -#include <arm_fp16.h> // needed for float16_t -#endif /* ARM_COMPUTE_ENABLE_FP16 */ - namespace arm_compute { namespace test @@ -88,10 +84,8 @@ double get_double_data(const void *ptr, DataType data_type) return *reinterpret_cast<const uint64_t *>(ptr); case DataType::S64: return *reinterpret_cast<const int64_t *>(ptr); -#ifdef ARM_COMPUTE_ENABLE_FP16 case DataType::F16: - return *reinterpret_cast<const float16_t *>(ptr); -#endif /* ARM_COMPUTE_ENABLE_FP16 */ + return *reinterpret_cast<const half_float::half *>(ptr); case DataType::F32: return *reinterpret_cast<const float *>(ptr); case DataType::F64: |