Skip to content

Commit

Permalink
Fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyachur committed Aug 26, 2021
1 parent 85ab414 commit 6363551
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ ngraph::pass::ConvStridesPropagation::ConvStridesPropagation() {
auto conv_input = conv->input(0);
insert_strides_prop(conv_input, conv_strides);
} else {
// Retain original padding
// Make sure that setting strides does not change padding in cases when auto_pad is not EXPLICIT.
// When padding type is not EXPLICIT, strides make a role to paddings calculation.
// Change in padding, results in change in image position that filter is applied,
// so we may end up with unwanted results after that.
conv->set_auto_pad(op::PadType::EXPLICIT);
conv->set_strides(conv_strides);
}

Expand Down

0 comments on commit 6363551

Please sign in to comment.