From 40192c1d1b092130dbb6773a56857f354bc7746a Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Tue, 13 Oct 2020 17:00:06 +0100 Subject: COMPMID-3708 Remove OpenCL padding: CLCopyKernel [Patch1] * Remove padding only for when user-supplied padding is empty * Vectorize the case where output_window is not null and the output window is narrow in x (smaller than vec_size_x) Change-Id: I313089fe309e87e8529ecfd00542fcfa4dc44862 Signed-off-by: SiCong Li Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4193 Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- tests/validation/CL/Copy.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/validation/CL/Copy.cpp b/tests/validation/CL/Copy.cpp index 07af24352e..0b2a15146b 100644 --- a/tests/validation/CL/Copy.cpp +++ b/tests/validation/CL/Copy.cpp @@ -48,15 +48,13 @@ TEST_SUITE(Copy) DATA_TEST_CASE(Validate, framework::DatasetMode::ALL, zip(zip( framework::dataset::make("InputInfo", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), // Invalid data type combination TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), // Mismatching shapes - TensorInfo(TensorShape(14U, 13U, 2U), 1, DataType::U8), // Window shrink - TensorInfo(TensorShape(32U, 32U, 2U), 1, DataType::U8), + TensorInfo(TensorShape(14U, 13U, 2U), 1, DataType::U8), }), framework::dataset::make("OutputInfo",{ TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::S16), TensorInfo(TensorShape(32U, 11U, 2U), 1, DataType::U8), TensorInfo(TensorShape(14U, 13U, 2U), 1, DataType::U8), - TensorInfo(TensorShape(32U, 32U, 2U), 1, DataType::U8), })), - framework::dataset::make("Expected", { false, false, false, true })), + framework::dataset::make("Expected", { false, false, true })), input_info, output_info, expected) { ARM_COMPUTE_EXPECT(bool(CLCopy::validate(&input_info.clone()->set_is_resizable(false), &output_info.clone()->set_is_resizable(false))) == expected, framework::LogLevel::ERRORS); -- cgit v1.2.1