From e49e26613264842f91d29a32be3a226a0d6adb42 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Fri, 21 Jul 2017 15:55:28 +0100 Subject: 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 Reviewed-by: Anthony Barbier --- tests/validation/Validation.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'tests/validation/Validation.cpp') 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 #include @@ -40,10 +40,6 @@ #include #include -#ifdef ARM_COMPUTE_ENABLE_FP16 -#include // 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(ptr); case DataType::S64: return *reinterpret_cast(ptr); -#ifdef ARM_COMPUTE_ENABLE_FP16 case DataType::F16: - return *reinterpret_cast(ptr); -#endif /* ARM_COMPUTE_ENABLE_FP16 */ + return *reinterpret_cast(ptr); case DataType::F32: return *reinterpret_cast(ptr); case DataType::F64: -- cgit v1.2.1