diff options
Diffstat (limited to 'src/runtime/CL/functions/CLPadLayer.cpp')
-rw-r--r-- | src/runtime/CL/functions/CLPadLayer.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/runtime/CL/functions/CLPadLayer.cpp b/src/runtime/CL/functions/CLPadLayer.cpp index 8c5d529117..d105c0597c 100644 --- a/src/runtime/CL/functions/CLPadLayer.cpp +++ b/src/runtime/CL/functions/CLPadLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020 Arm Limited. + * Copyright (c) 2019-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -22,14 +22,13 @@ * SOFTWARE. */ #include "arm_compute/runtime/CL/functions/CLPadLayer.h" -#include "src/core/CL/kernels/CLCopyKernel.h" #include "src/core/CL/kernels/CLPadLayerKernel.h" namespace arm_compute { CLPadLayer::CLPadLayer() : _pad_kernel(std::make_unique<CLPadLayerKernel>()), - _copy_kernel(std::make_unique<CLCopyKernel>()), + _copy(), _perform_pad(false) { } @@ -57,7 +56,7 @@ void CLPadLayer::configure(const CLCompileContext &compile_context, ICLTensor *i else { // Copy the input to the whole output if no padding is applied - _copy_kernel->configure(compile_context, input, output); + _copy.configure(compile_context, input, output); } } Status CLPadLayer::validate(const ITensorInfo *input, const ITensorInfo *output, const PaddingList &padding, PixelValue constant_value, PaddingMode mode) @@ -73,7 +72,7 @@ Status CLPadLayer::validate(const ITensorInfo *input, const ITensorInfo *output, } else { - ARM_COMPUTE_RETURN_ON_ERROR(CLCopyKernel::validate(input, output)); + ARM_COMPUTE_RETURN_ON_ERROR(CLCopy::validate(input, output)); } return Status{}; } @@ -85,7 +84,7 @@ void CLPadLayer::run() } else { - CLScheduler::get().enqueue(*_copy_kernel); + _copy.run(); } } } // namespace arm_compute
\ No newline at end of file |