diff options
author | SiCong Li <sicong.li@arm.com> | 2020-10-14 17:00:56 +0100 |
---|---|---|
committer | SiCong Li <sicong.li@arm.com> | 2020-10-23 13:23:26 +0000 |
commit | 3580c7564c8ae68987dbe4717f99a952bc5d7aad (patch) | |
tree | 817f3de5f764b781fa7445627bcb00a04e9cb14e /src/runtime/CL | |
parent | 79acd77b9e737971f653cde640759670b27c673f (diff) | |
download | ComputeLibrary-3580c7564c8ae68987dbe4717f99a952bc5d7aad.tar.gz |
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 <sicong.li@arm.com>
Change-Id: Ib53e76efd7d043ee79dcd47ca734c6dc685da43e
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4194
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/CL')
-rw-r--r-- | src/runtime/CL/functions/CLCropResize.cpp | 2 | ||||
-rw-r--r-- | src/runtime/CL/functions/CLPadLayer.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/CL/functions/CLCropResize.cpp b/src/runtime/CL/functions/CLCropResize.cpp index 6167e9de0a..4cf9f13a67 100644 --- a/src/runtime/CL/functions/CLCropResize.cpp +++ b/src/runtime/CL/functions/CLCropResize.cpp @@ -146,7 +146,7 @@ void CLCropResize::configure(const CLCompileContext &compile_context, const ICLT win.set(3, Window::Dimension(num_box, num_box + 1, 1)); auto copy_kernel = support::cpp14::make_unique<CLCopyKernel>(); - copy_kernel->configure(compile_context, _scaled_results[num_box].get(), _output, PaddingList(), &win); + copy_kernel->configure(compile_context, _scaled_results[num_box].get(), _output, &win); _copy.emplace_back(std::move(copy_kernel)); _crop_results[num_box]->allocator()->allocate(); 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{}; } |