aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/CL/Accumulate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/CL/Accumulate.cpp')
-rw-r--r--tests/validation/CL/Accumulate.cpp75
1 files changed, 1 insertions, 74 deletions
diff --git a/tests/validation/CL/Accumulate.cpp b/tests/validation/CL/Accumulate.cpp
index ee2d2521cb..3e0175ea78 100644
--- a/tests/validation/CL/Accumulate.cpp
+++ b/tests/validation/CL/Accumulate.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -53,27 +53,6 @@ TEST_SUITE(CL)
TEST_SUITE(Accumulate)
TEST_SUITE(U8)
-DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), AccumulateS16Dataset),
- shape, data_type, output_data_type)
-{
- // Create tensors
- CLTensor ref_src = create_tensor<CLTensor>(shape, data_type);
- CLTensor dst = create_tensor<CLTensor>(shape, output_data_type);
-
- // Create and Configure function
- CLAccumulate accum;
- accum.configure(&ref_src, &dst);
-
- // Validate valid region
- const ValidRegion valid_region = shape_to_valid_region(shape);
- validate(dst.info()->valid_region(), valid_region);
-
- // Validate padding
- const PaddingSize padding = PaddingCalculator(shape.x(), 16).required_padding();
- validate(ref_src.info()->padding(), padding);
- validate(dst.info()->padding(), padding);
-}
-
template <typename T1>
using CLAccumulateFixture = AccumulateValidationFixture<CLTensor, CLAccessor, CLAccumulate, T1, int16_t>;
@@ -94,32 +73,6 @@ TEST_SUITE_END()
TEST_SUITE(AccumulateWeighted)
TEST_SUITE(U8)
-DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), AccumulateU8Dataset),
- shape, data_type, output_data_type)
-{
- // Generate a random alpha value
- std::mt19937 gen(library->seed());
- std::uniform_real_distribution<> float_dist(0, 1);
- const float alpha = float_dist(gen);
-
- // Create tensors
- CLTensor ref_src = create_tensor<CLTensor>(shape, data_type);
- CLTensor dst = create_tensor<CLTensor>(shape, output_data_type);
-
- // Create and Configure function
- CLAccumulateWeighted accum_weight;
- accum_weight.configure(&ref_src, alpha, &dst);
-
- // Validate valid region
- const ValidRegion valid_region = shape_to_valid_region(shape);
- validate(dst.info()->valid_region(), valid_region);
-
- // Validate padding
- const PaddingSize padding = PaddingCalculator(shape.x(), 16).required_padding();
- validate(ref_src.info()->padding(), padding);
- validate(dst.info()->padding(), padding);
-}
-
template <typename T1>
using CLAccumulateWeightedFixture = AccumulateWeightedValidationFixture<CLTensor, CLAccessor, CLAccumulateWeighted, T1, uint8_t>;
@@ -140,32 +93,6 @@ TEST_SUITE_END()
TEST_SUITE(AccumulateSquared)
TEST_SUITE(U8)
-DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(datasets::SmallShapes(), AccumulateS16Dataset),
- shape, data_type, output_data_type)
-{
- // Generate a random shift value
- std::mt19937 gen(library->seed());
- std::uniform_int_distribution<uint32_t> int_dist(0, 15);
- const uint32_t shift = int_dist(gen);
-
- // Create tensors
- CLTensor ref_src = create_tensor<CLTensor>(shape, data_type);
- CLTensor dst = create_tensor<CLTensor>(shape, output_data_type);
-
- // Create and Configure function
- CLAccumulateSquared accum_square;
- accum_square.configure(&ref_src, shift, &dst);
-
- // Validate valid region
- const ValidRegion valid_region = shape_to_valid_region(shape);
- validate(dst.info()->valid_region(), valid_region);
-
- // Validate padding
- const PaddingSize padding = PaddingCalculator(shape.x(), 16).required_padding();
- validate(ref_src.info()->padding(), padding);
- validate(dst.info()->padding(), padding);
-}
-
template <typename T1>
using CLAccumulateSquaredFixture = AccumulateSquaredValidationFixture<CLTensor, CLAccessor, CLAccumulateSquared, T1, int16_t>;