From 383deec6b38f8b00f901d475000d46f8d3e5fb97 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Fri, 23 Jun 2017 10:40:05 +0100 Subject: 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 Reviewed-by: Anthony Barbier --- tests/validation/TensorFactory.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/validation/TensorFactory.h') diff --git a/tests/validation/TensorFactory.h b/tests/validation/TensorFactory.h index 48f9d6702f..610425bbfb 100644 --- a/tests/validation/TensorFactory.h +++ b/tests/validation/TensorFactory.h @@ -30,6 +30,10 @@ #include "boost_wrapper.h" +#if ARM_COMPUTE_ENABLE_FP16 +#include // needed for float16_t +#endif + namespace arm_compute { namespace test @@ -39,7 +43,7 @@ namespace validation using TensorVariant = boost::variant < Tensor, Tensor, Tensor, Tensor, Tensor, Tensor, -#ifdef ENABLE_FP16 +#ifdef ARM_COMPUTE_ENABLE_FP16 Tensor, #endif Tensor>; @@ -90,10 +94,10 @@ public: using value_type_s32 = typename match_const::type; v = Tensor(shape, dt, fixed_point_position, reinterpret_cast(data)); break; -#ifdef ENABLE_FP16 +#ifdef ARM_COMPUTE_ENABLE_FP16 case DataType::F16: using value_type_f16 = typename match_const::type; - v = Tensor(raw.shape(), dt, reinterpret_cast(raw.data())); + v = Tensor(shape, dt, fixed_point_position, reinterpret_cast(data)); break; #endif case DataType::F32: -- cgit v1.2.1