aboutsummaryrefslogtreecommitdiff
path: root/src/core/cpu/kernels/CpuPoolingKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cpu/kernels/CpuPoolingKernel.cpp')
-rw-r--r--src/core/cpu/kernels/CpuPoolingKernel.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/cpu/kernels/CpuPoolingKernel.cpp b/src/core/cpu/kernels/CpuPoolingKernel.cpp
index e159bb40a9..115a3a4c67 100644
--- a/src/core/cpu/kernels/CpuPoolingKernel.cpp
+++ b/src/core/cpu/kernels/CpuPoolingKernel.cpp
@@ -422,10 +422,7 @@ void CpuPoolingKernel::configure(ITensorInfo *src, ITensorInfo *dst, const Pooli
if(_data_layout == DataLayout::NHWC)
{
// Configure kernel window
- Window win = calculate_max_window(*dst, Steps());
- Coordinates coord;
- coord.set_num_dimensions(dst->num_dimensions());
- dst->set_valid_region(ValidRegion(coord, dst->tensor_shape()));
+ Window win = calculate_max_window(*dst, Steps());
ICpuKernel::configure(win);
}
else