From fbf3ecc1833b860019f965c88cda87ec9f44c3d5 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Thu, 23 Aug 2018 17:26:21 +0100 Subject: COMPMID-1534 - Fix GEMM and Magnitude test for FP16 On GEMM we had accuracy issue On Magnitude we have disabled the fp16 acceleration since we do not have feature parity with CL and this function is not used for ML Change-Id: Iaebe3bbbd2a9f45db0c714aa5ebaf48eb0b65741 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145467 Tested-by: Jenkins Reviewed-by: Georgios Pinitas Reviewed-by: Anthony Barbier --- tests/validation/fixtures/MagnitudeFixture.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/validation/fixtures') diff --git a/tests/validation/fixtures/MagnitudeFixture.h b/tests/validation/fixtures/MagnitudeFixture.h index 1c529070a8..0930fb4117 100644 --- a/tests/validation/fixtures/MagnitudeFixture.h +++ b/tests/validation/fixtures/MagnitudeFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -43,9 +43,9 @@ class MagnitudeValidationFixture : public framework::Fixture { public: template - void setup(TensorShape shape, Format format, MagnitudeType magnitude_type, bool use_fp16) + void setup(TensorShape shape, Format format, MagnitudeType magnitude_type) { - _target = compute_target(shape, format, magnitude_type, use_fp16); + _target = compute_target(shape, format, magnitude_type); _reference = compute_reference(shape, format, magnitude_type); _magnitude_type = magnitude_type; } @@ -57,7 +57,7 @@ protected: library->fill_tensor_uniform(tensor, seed_offset); } - TensorType compute_target(const TensorShape &shape, Format format, MagnitudeType magnitude_type, bool use_fp16) + TensorType compute_target(const TensorShape &shape, Format format, MagnitudeType magnitude_type) { DataType data_type = data_type_from_format(format); @@ -73,7 +73,7 @@ protected: // Create and configure function FunctionType magnitude; - magnitude.configure(&src1, &src2, &dst, magnitude_type, use_fp16); + magnitude.configure(&src1, &src2, &dst, magnitude_type); ARM_COMPUTE_EXPECT(src1.info()->is_resizable(), framework::LogLevel::ERRORS); ARM_COMPUTE_EXPECT(src2.info()->is_resizable(), framework::LogLevel::ERRORS); -- cgit v1.2.1