File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ struct FusePadIntoConv final : public PredicateBasedPass {
4343
4444 Node* conv = n;
4545 Node* pad = n->inputs ()[0 ]->node ();
46-
46+
4747 std::string pad_mode;
4848 if (pad->hasAttribute (kmode)) {
4949 pad_mode = pad->s (kmode);
@@ -71,7 +71,7 @@ struct FusePadIntoConv final : public PredicateBasedPass {
7171
7272 // check if padding is only positive
7373 if (std::any_of (pads.begin (), pads.end (),
74- [](int64_t value ) { return value < 0 ; })) {
74+ [](int64_t local_value ) { return local_value < 0 ; })) {
7575 return false ;
7676 }
7777
@@ -81,7 +81,7 @@ struct FusePadIntoConv final : public PredicateBasedPass {
8181 if (conv->hasAttribute (kpads)) {
8282 conv_pads = conv->is (kpads);
8383 }
84-
84+
8585 for (int i = 2 , j = 0 ; i < pads_size / 2 ; ++i, ++j) {
8686 conv_pads[j] += pads[i];
8787 conv_pads[conv_pads_size / 2 + j] += pads[pads_size / 2 + i];
You can’t perform that action at this time.
0 commit comments