From b9070a42a44ec1a0102e2f0b04523d2e96392903 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Thu, 22 Aug 2019 16:13:27 +0100 Subject: COMPMID-2605: Add asymmetric padding support for Deconvolution layer Change-Id: I63b773bdce25f1342ccd3a08ded623a1508f70fe Signed-off-by: Matthew Jackson Reviewed-on: https://review.mlplatform.org/c/1797 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Reviewed-by: Giuseppe Rossini --- src/core/CPP/kernels/CPPUpsampleKernel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/CPP/kernels/CPPUpsampleKernel.cpp') diff --git a/src/core/CPP/kernels/CPPUpsampleKernel.cpp b/src/core/CPP/kernels/CPPUpsampleKernel.cpp index ad2d54a0f8..e63808f80e 100644 --- a/src/core/CPP/kernels/CPPUpsampleKernel.cpp +++ b/src/core/CPP/kernels/CPPUpsampleKernel.cpp @@ -76,10 +76,10 @@ void CPPUpsampleKernel::run(const Window &window, const ThreadInfo &info) const int height_scaled = _output->info()->dimension(1); const int stride_x = _info.stride().first; const int stride_y = _info.stride().second; - const int start_x = _info.pad().first; - const int start_y = _info.pad().second; - const int end_y = height_scaled - _info.pad().second; - const int end_x = width_scaled - _info.pad().first; + const int start_x = _info.pad_left(); + const int start_y = _info.pad_top(); + const int end_x = width_scaled - _info.pad_right(); + const int end_y = height_scaled - _info.pad_bottom(); const size_t element_size = _input->info()->element_size(); //The fill value is normally 0, but for QASYMM8 the '0' corresponds to the offset -- cgit v1.2.1