diff --git a/src/operators/math/im2col.cpp b/src/operators/math/im2col.cpp index 4065f7d9c4934bce8285ea99fe4f14c4e2cc990c..090ccdf24e214fc86b8a4032df228d50caa65ef9 100644 --- a/src/operators/math/im2col.cpp +++ b/src/operators/math/im2col.cpp @@ -74,7 +74,7 @@ class Im2ColFunctor { const int isize = im_height; bool pad1 = padding[0] > 0; bool pad2 = - (pad1 && + (pad1 && padding[1] && (((isize - 2 * padding[0] + filter_height) % stride[0] == 0) ? 1 : 0)); int fill = isize % 2; if (stride[0] == 1 && filter_height == 3 && pad1 && pad2 &&