From 3580c7564c8ae68987dbe4717f99a952bc5d7aad Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Wed, 14 Oct 2020 17:00:56 +0100 Subject: COMPMID-3708 Remove OpenCL padding: CLCopyKernel [Patch2] * Remove the user-supplied padding from CLCopyKernel Note that this padding is different from the internal "padding" in the original task, as it is user-supplied instead of internal. This user-supplied padding interface is removed simply because it has been replaced by a more capable CLPadLayerKernel, and is not used anywhere else. Signed-off-by: SiCong Li Change-Id: Ib53e76efd7d043ee79dcd47ca734c6dc685da43e Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4194 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- src/runtime/CL/functions/CLPadLayer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/runtime/CL/functions/CLPadLayer.cpp') diff --git a/src/runtime/CL/functions/CLPadLayer.cpp b/src/runtime/CL/functions/CLPadLayer.cpp index 12a51f11f5..fb6078cc79 100644 --- a/src/runtime/CL/functions/CLPadLayer.cpp +++ b/src/runtime/CL/functions/CLPadLayer.cpp @@ -67,9 +67,7 @@ Status CLPadLayer::validate(const ITensorInfo *input, const ITensorInfo *output, } else { - Window copy_window = Window(); - copy_window.use_tensor_dimensions(output->tensor_shape()); - ARM_COMPUTE_RETURN_ON_ERROR(CLCopyKernel::validate(input, output, PaddingList(), ©_window)); + ARM_COMPUTE_RETURN_ON_ERROR(CLCopyKernel::validate(input, output)); } return Status{}; } -- cgit v1.2.1