From 7485d5a62685cb745ab50e970adb722cb71557ac Mon Sep 17 00:00:00 2001 From: Vidhya Sudhan Loganathan Date: Wed, 4 Jul 2018 09:34:00 +0100 Subject: COMPMID-970 : Remove QS8 / QS16 support Removed fixed point related code. Change-Id: I487acf138dace3b0450e0d72ca7071eaec254566 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/137678 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- tests/validation/fixtures/PoolingLayerFixture.h | 8 +------- tests/validation/fixtures/SoftmaxLayerFixture.h | 22 +--------------------- 2 files changed, 2 insertions(+), 28 deletions(-) (limited to 'tests/validation/fixtures') diff --git a/tests/validation/fixtures/PoolingLayerFixture.h b/tests/validation/fixtures/PoolingLayerFixture.h index 24539545ca..499628c438 100644 --- a/tests/validation/fixtures/PoolingLayerFixture.h +++ b/tests/validation/fixtures/PoolingLayerFixture.h @@ -65,16 +65,10 @@ protected: std::uniform_real_distribution<> distribution(-1.f, 1.f); library->fill(tensor, distribution, 0); } - else if(is_data_type_quantized_asymmetric(tensor.data_type())) + else // data type is quantized_asymmetric { library->fill_tensor_uniform(tensor, 0); } - else - { - const int one_fixed = 1; - std::uniform_int_distribution<> distribution(-one_fixed, one_fixed); - library->fill(tensor, distribution, 0); - } } TensorType compute_target(TensorShape shape, PoolingLayerInfo info, diff --git a/tests/validation/fixtures/SoftmaxLayerFixture.h b/tests/validation/fixtures/SoftmaxLayerFixture.h index 59ce5192ff..99c0710f7f 100644 --- a/tests/validation/fixtures/SoftmaxLayerFixture.h +++ b/tests/validation/fixtures/SoftmaxLayerFixture.h @@ -64,17 +64,11 @@ protected: std::uniform_real_distribution<> distribution(-1000.f, 1000.f); library->fill(tensor, distribution, 0); } - else if(is_data_type_quantized_asymmetric(tensor.data_type())) + else // data type is quantized_asymmetric { std::uniform_int_distribution<> distribution(0, 100); library->fill(tensor, distribution, 0); } - else - { - const int one_fixed = 1; - std::uniform_int_distribution<> distribution(-one_fixed, one_fixed); - library->fill(tensor, distribution, 0); - } } TensorType compute_target(const TensorShape &shape, DataType data_type, @@ -138,20 +132,6 @@ public: } }; -template -class SoftmaxValidationFixedPointFixture : public SoftmaxValidationGenericFixture -{ -public: - template - void setup(TensorShape shape, DataType data_type) - { - SoftmaxValidationGenericFixture::setup(shape, - data_type, - QuantizationInfo(), - 1.0f); - } -}; - template class SoftmaxValidationQuantizedFixture : public SoftmaxValidationGenericFixture { -- cgit v1.2.1