diff options
author | John Richardson <john.richardson@arm.com> | 2018-05-14 17:20:39 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:52:35 +0000 |
commit | a4244190b6c7dc7d30d6adc621ca9a8b84b677ee (patch) | |
tree | 2f52271780062b7ee18fcca0eaf1e4e5f8eb0457 /tests | |
parent | 130986a5d87a15371dda2e787b4a0eaec6763433 (diff) | |
download | ComputeLibrary-a4244190b6c7dc7d30d6adc621ca9a8b84b677ee.tar.gz |
COMPMID-948: Remove unused code in CLReductionOperationKernel
Remove redudant code left over from validation method refactoring.
Update output shapes in CL/ReductionOperation Validate test suite.
Change-Id: Ica846dd7f65380fa21708472e10b5bc609a32027
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/131207
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/validation/CL/ReductionOperation.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/validation/CL/ReductionOperation.cpp b/tests/validation/CL/ReductionOperation.cpp index a2a5eff4de..a48e2f9d5f 100644 --- a/tests/validation/CL/ReductionOperation.cpp +++ b/tests/validation/CL/ReductionOperation.cpp @@ -60,19 +60,19 @@ DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip(zip( TensorInfo(TensorShape(128U, 64U), 1, DataType::F32), // Axis > 0 TensorInfo(TensorShape(128U, 64U), 1, DataType::F32) }), - framework::dataset::make("OutputInfo", { TensorInfo(TensorShape(128U, 64U), 1, DataType::F16), - TensorInfo(TensorShape(128U, 64U), 1, DataType::F32), - TensorInfo(TensorShape(128U, 64U), 1, DataType::S16), - TensorInfo(TensorShape(128U, 64U), 1, DataType::F32), - TensorInfo(TensorShape(128U, 64U), 1, DataType::F32), - TensorInfo(TensorShape(128U, 64U), 1, DataType::F32) + framework::dataset::make("OutputInfo", { TensorInfo(TensorShape(1U, 64U), 1, DataType::F16), + TensorInfo(TensorShape(1U, 64U), 1, DataType::F32), + TensorInfo(TensorShape(1U, 64U), 1, DataType::S16), + TensorInfo(TensorShape(1U, 64U), 1, DataType::F32), + TensorInfo(TensorShape(1U, 64U), 1, DataType::F32), + TensorInfo(TensorShape(1U, 64U), 1, DataType::F32) })), framework::dataset::make("Axis", { 0U, 0U, 0U, static_cast<unsigned int>(TensorShape::num_max_dimensions), 1U, 0U })), framework::dataset::make("Expected", { false, false, false, false, false, true })), input_info, output_info, axis, expected) { bool is_valid = bool(CLReductionOperation::validate(&input_info.clone()->set_is_resizable(false), - &output_info.clone()->set_is_resizable(false), + &output_info.clone()->set_is_resizable(true), axis, ReductionOperation::SUM_SQUARE)); ARM_COMPUTE_EXPECT(is_valid == expected, framework::LogLevel::ERRORS); |