From 014333d73883c3872e458cedda5ccef586a7ccd4 Mon Sep 17 00:00:00 2001 From: Vidhya Sudhan Loganathan Date: Mon, 2 Jul 2018 09:13:49 +0100 Subject: COMPMID-970 : Remove QS8 / QS16 support Removed Fixed point position arguments from test sources Change-Id: I8343724723b71611fd501ed34de0866d3fb60e7e Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/136382 Tested-by: Jenkins Reviewed-by: Michele DiGiorgio Reviewed-by: Anthony Barbier --- .../validation/fixtures/GEMMTranspose1xWFixture.h | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'tests/validation/fixtures/GEMMTranspose1xWFixture.h') diff --git a/tests/validation/fixtures/GEMMTranspose1xWFixture.h b/tests/validation/fixtures/GEMMTranspose1xWFixture.h index d83d5e9c06..48fa55e8cc 100644 --- a/tests/validation/fixtures/GEMMTranspose1xWFixture.h +++ b/tests/validation/fixtures/GEMMTranspose1xWFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -47,15 +47,14 @@ class GEMMTranspose1xWValidationFixedPointFixture : public framework::Fixture { public: template - void setup(size_t x, size_t y, DataType data_type, int fractional_bits) + void setup(size_t x, size_t y, DataType data_type) { - _fractional_bits = fractional_bits; - _data_type = data_type; + _data_type = data_type; const TensorShape shape_a(x, y); const unsigned int transpose_w = 16 / data_size_from_type(data_type); const TensorShape shape_b(static_cast(y * transpose_w), static_cast(std::ceil(x / static_cast(transpose_w)))); - _target = compute_target(shape_a, shape_b, data_type, fractional_bits); - _reference = compute_reference(shape_a, shape_b, data_type, fractional_bits); + _target = compute_target(shape_a, shape_b, data_type); + _reference = compute_reference(shape_a, shape_b, data_type); } protected: @@ -77,11 +76,11 @@ protected: } } - TensorType compute_target(const TensorShape &shape_a, const TensorShape &shape_b, DataType data_type, int fixed_point_position) + TensorType compute_target(const TensorShape &shape_a, const TensorShape &shape_b, DataType data_type) { // Create tensors - TensorType a = create_tensor(shape_a, data_type, 1, fixed_point_position); - TensorType b = create_tensor(shape_b, data_type, 1, fixed_point_position); + TensorType a = create_tensor(shape_a, data_type, 1); + TensorType b = create_tensor(shape_b, data_type, 1); // Create and configure function FunctionType f; @@ -107,10 +106,10 @@ protected: return b; } - SimpleTensor compute_reference(const TensorShape &shape_a, const TensorShape &shape_b, DataType data_type, int fixed_point_position) + SimpleTensor compute_reference(const TensorShape &shape_a, const TensorShape &shape_b, DataType data_type) { // Create reference - SimpleTensor a{ shape_a, data_type, 1, fixed_point_position }; + SimpleTensor a{ shape_a, data_type, 1 }; // Fill reference fill(a, 0); @@ -120,7 +119,6 @@ protected: TensorType _target{}; SimpleTensor _reference{}; - int _fractional_bits{}; DataType _data_type{}; }; @@ -131,7 +129,7 @@ public: template void setup(size_t x, size_t y, DataType data_type) { - GEMMTranspose1xWValidationFixedPointFixture::setup(x, y, data_type, 0); + GEMMTranspose1xWValidationFixedPointFixture::setup(x, y, data_type); } }; -- cgit v1.2.1