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 --- tests/validation/fixtures/GEMMFixture.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'tests/validation/fixtures/GEMMFixture.h') diff --git a/tests/validation/fixtures/GEMMFixture.h b/tests/validation/fixtures/GEMMFixture.h index 8dd2998377..e4762cc5be 100644 --- a/tests/validation/fixtures/GEMMFixture.h +++ b/tests/validation/fixtures/GEMMFixture.h @@ -47,13 +47,12 @@ class GEMMValidationFixedPointFixture : public framework::Fixture { public: template - void setup(TensorShape shape_a, TensorShape shape_b, TensorShape shape_c, TensorShape output_shape, float alpha, float beta, DataType data_type, int fractional_bits) + void setup(TensorShape shape_a, TensorShape shape_b, TensorShape shape_c, TensorShape output_shape, float alpha, float beta, DataType data_type) { - _fractional_bits = fractional_bits; - _data_type = data_type; + _data_type = data_type; - _target = compute_target(shape_a, shape_b, shape_c, output_shape, alpha, beta, data_type, fractional_bits); - _reference = compute_reference(shape_a, shape_b, shape_c, output_shape, alpha, beta, data_type, fractional_bits); + _target = compute_target(shape_a, shape_b, shape_c, output_shape, alpha, beta, data_type); + _reference = compute_reference(shape_a, shape_b, shape_c, output_shape, alpha, beta, data_type); } protected: @@ -75,13 +74,13 @@ protected: } TensorType compute_target(const TensorShape &shape_a, const TensorShape &shape_b, const TensorShape &shape_c, const TensorShape &output_shape, float alpha, float beta, - DataType data_type, int fixed_point_position) + 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 c = create_tensor(shape_c, data_type, 1, fixed_point_position); - TensorType dst = create_tensor(output_shape, data_type, 1, fixed_point_position); + TensorType a = create_tensor(shape_a, data_type, 1); + TensorType b = create_tensor(shape_b, data_type, 1); + TensorType c = create_tensor(shape_c, data_type, 1); + TensorType dst = create_tensor(output_shape, data_type, 1); // Create and configure function FunctionType gemm; @@ -120,12 +119,12 @@ protected: } SimpleTensor compute_reference(const TensorShape &shape_a, const TensorShape &shape_b, const TensorShape &shape_c, const TensorShape &output_shape, float alpha, float beta, - DataType data_type, int fixed_point_position) + DataType data_type) { // Create reference - SimpleTensor a{ shape_a, data_type, 1, fixed_point_position }; - SimpleTensor b{ shape_b, data_type, 1, fixed_point_position }; - SimpleTensor c{ shape_c, data_type, 1, fixed_point_position }; + SimpleTensor a{ shape_a, data_type, 1 }; + SimpleTensor b{ shape_b, data_type, 1 }; + SimpleTensor c{ shape_c, data_type, 1 }; // Fill reference fill(a, 0); @@ -137,7 +136,6 @@ protected: TensorType _target{}; SimpleTensor _reference{}; - int _fractional_bits{}; DataType _data_type{}; }; @@ -148,7 +146,7 @@ public: template void setup(TensorShape shape_a, TensorShape shape_b, TensorShape shape_c, TensorShape output_shape, float alpha, float beta, DataType data_type) { - GEMMValidationFixedPointFixture::setup(shape_a, shape_b, shape_c, output_shape, alpha, beta, data_type, 0); + GEMMValidationFixedPointFixture::setup(shape_a, shape_b, shape_c, output_shape, alpha, beta, data_type); } }; } // namespace validation -- cgit v1.2.1