diff options
author | Pablo Tello <pablo.tello@arm.com> | 2017-06-23 10:40:05 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:14:20 +0100 |
commit | 383deec6b38f8b00f901d475000d46f8d3e5fb97 (patch) | |
tree | dc2e72587ea624d1b0eb06d8559af0e7783d90d0 /tests/validation/Validation.cpp | |
parent | fabb038a54ca217497c17e31ba7ae098690f2f69 (diff) | |
download | ComputeLibrary-383deec6b38f8b00f901d475000d46f8d3e5fb97.tar.gz |
COMPMID-345: Added support for arm8.2+FP16 in the the validation framework.
Change-Id: Ifef2133d4a0da5456bec147330405b6d58cf6a71
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78676
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 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/validation/Validation.cpp b/tests/validation/Validation.cpp index 17dc6952ca..8aada0cb0e 100644 --- a/tests/validation/Validation.cpp +++ b/tests/validation/Validation.cpp @@ -40,6 +40,10 @@ #include <cstdint> #include <iomanip> +#if ARM_COMPUTE_ENABLE_FP16 +#include <arm_fp16.h> // needed for float16_t +#endif + namespace arm_compute { namespace test @@ -82,7 +86,7 @@ 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); -#if ENABLE_FP16 +#if ARM_COMPUTE_ENABLE_FP16 case DataType::F16: return *reinterpret_cast<const float16_t *>(ptr); #endif @@ -384,6 +388,8 @@ void validate(const IAccessor &tensor, BorderSize border_size, const BorderMode void validate(std::vector<unsigned int> classified_labels, std::vector<unsigned int> expected_labels) { + ARM_COMPUTE_UNUSED(classified_labels); + ARM_COMPUTE_UNUSED(expected_labels); BOOST_TEST(expected_labels.size() != 0); BOOST_TEST(classified_labels.size() == expected_labels.size()); |