diff options
Diffstat (limited to 'tests/validation/fixtures')
-rw-r--r-- | tests/validation/fixtures/PoolingLayerFixture.h | 8 | ||||
-rw-r--r-- | tests/validation/fixtures/SoftmaxLayerFixture.h | 22 |
2 files changed, 2 insertions, 28 deletions
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, @@ -139,20 +133,6 @@ public: }; template <typename TensorType, typename AccessorType, typename FunctionType, typename T> -class SoftmaxValidationFixedPointFixture : public SoftmaxValidationGenericFixture<TensorType, AccessorType, FunctionType, T> -{ -public: - template <typename...> - void setup(TensorShape shape, DataType data_type) - { - SoftmaxValidationGenericFixture<TensorType, AccessorType, FunctionType, T>::setup(shape, - data_type, - QuantizationInfo(), - 1.0f); - } -}; - -template <typename TensorType, typename AccessorType, typename FunctionType, typename T> class SoftmaxValidationQuantizedFixture : public SoftmaxValidationGenericFixture<TensorType, AccessorType, FunctionType, T> { public: |