From a4244190b6c7dc7d30d6adc621ca9a8b84b677ee Mon Sep 17 00:00:00 2001 From: John Richardson Date: Mon, 14 May 2018 17:20:39 +0100 Subject: 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 Reviewed-by: Pablo Tello Reviewed-by: Anthony Barbier --- tests/validation/CL/ReductionOperation.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/validation/CL/ReductionOperation.cpp') 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(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); -- cgit v1.2.1