Skip to content

Commit c7761d7

Browse files
authored
UpdatePadding has already modify the value of pad (#72618)
1 parent 7c5f282 commit c7761d7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

paddle/phi/kernels/xpu/pool_kernel.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ void Pool2dKernel(const Context& ctx,
7979
strides,
8080
kernel_size);
8181

82-
if (ceil_mode) {
83-
int in_h_ceil = (out_h - 1) * strides[0] + kernel_size[0] - 2 * paddings[0];
84-
int in_w_ceil = (out_w - 1) * strides[1] + kernel_size[1] - 2 * paddings[2];
85-
86-
paddings[1] += (in_h_ceil - in_h);
87-
paddings[3] += (in_w_ceil - in_w);
88-
}
89-
9082
ctx.template Alloc<T>(out);
9183
int* index_data = nullptr;
9284
int r = xpu::Error_t::SUCCESS;

0 commit comments

Comments
 (0)