diff --git a/csrc/scheduler/vectorize_helper.cpp b/csrc/scheduler/vectorize_helper.cpp index 06cf72a633b..25742f9a360 100644 --- a/csrc/scheduler/vectorize_helper.cpp +++ b/csrc/scheduler/vectorize_helper.cpp @@ -409,7 +409,7 @@ std::vector ContiguousInnerDimensionsMapper::projectId( } auto pos = std::distance(frontier.begin(), it); - if (resize_in_pad_.count(resize_op) == 0) { + if (resize_in_pad_.count(resize_op) != 0) { // project to frontier. frontier[pos] = id_to; // clear left of resize