Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Preserve pad_mode in reshape sinking for Pad (#3209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Procter authored and diyessi committed Jul 11, 2019
1 parent 2427b20 commit 40b39a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngraph/pass/reshape_sinking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ static void

auto new_lower = ngraph::apply_permutation(n->get_padding_below(), def_order);
auto new_upper = ngraph::apply_permutation(n->get_padding_above(), def_order);
auto new_pad =
make_shared<op::Pad>(dummy_correct_shape, n->get_argument(1), new_lower, new_upper);
auto new_pad = make_shared<op::Pad>(
dummy_correct_shape, n->get_argument(1), new_lower, new_upper, n->get_pad_mode());
ngraph::replace_node(dummy_correct_shape, n->get_argument(0));
NGRAPH_DEBUG << "Replacing " << n->get_name() << " with " << new_pad->get_name();
ngraph::replace_node(n, new_pad);
Expand Down

0 comments on commit 40b39a1

Please sign in to comment.