aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/gpu/cl/operators/ClScale.cpp
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2021-08-19 13:04:56 +0100
committerGiorgio Arena <giorgio.arena@arm.com>2021-08-23 13:33:31 +0000
commit511771fbe0a74e6d9dfd37ba9b4926a8315ec7aa (patch)
treee2296560f37935232d482982d025e148f1c6c61e /src/runtime/gpu/cl/operators/ClScale.cpp
parent19884630c37ae9de2f65a88ea2cda5630a551bad (diff)
downloadComputeLibrary-511771fbe0a74e6d9dfd37ba9b4926a8315ec7aa.tar.gz
Remove padding from ClScaleKernel
- Merge quantized kernels with fp for bilinear interpolation (both NCHW and NHWC) - Pass dimensions at compile time rather than at run time - Use tile-based approach to rework the NCHW kernels - Remove unused functions/files Resolve COMPMID-4723 Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Change-Id: Ifcdf02beb9daa9f318395751b3c85eb2fe874082 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6138 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'src/runtime/gpu/cl/operators/ClScale.cpp')
-rw-r--r--src/runtime/gpu/cl/operators/ClScale.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/runtime/gpu/cl/operators/ClScale.cpp b/src/runtime/gpu/cl/operators/ClScale.cpp
index 4730c8a16e..5c8d754c7e 100644
--- a/src/runtime/gpu/cl/operators/ClScale.cpp
+++ b/src/runtime/gpu/cl/operators/ClScale.cpp
@@ -41,12 +41,7 @@ void ClScale::configure(const CLCompileContext &compile_context, ITensorInfo *sr
k->set_target(CLScheduler::get().target());
k->configure(compile_context, src, dst, info);
_kernel = std::move(k);
- if(!_kernel->border_size().empty())
- {
- auto b = std::make_unique<CLFillBorderKernel>();
- b->configure(compile_context, src, _kernel->border_size(), info.border_mode, info.constant_border_value);
- _border_handler = std::move(b);
- }
+
// Tune kernel
CLScheduler::get().tune_kernel_static(*_kernel);
}
@@ -59,10 +54,6 @@ Status ClScale::validate(const ITensorInfo *src, const ITensorInfo *dst, const S
void ClScale::run(ITensorPack &tensors)
{
ARM_COMPUTE_ERROR_ON_MSG(tensors.empty(), "No inputs provided");
- if(!_kernel->border_size().empty())
- {
- CLScheduler::get().enqueue_op(*_border_handler.get(), tensors, false);
- }
CLScheduler::get().enqueue_op(*_kernel.get(), tensors);
}
} // namespace opencl