8000 Changes done internally at Facebook (#1668) · onnx/onnx@4280470 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4280470

Browse files
authored
Changes done internally at Facebook (#1668)
ee1741ead3f690875ba4793f31e75fce5b4dde93 Lu Fang <lufang@fb.com> Automatic update of fbcode/onnx to f85221f
1 parent f85221f commit 4280470

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx/optimizer/passes/fuse_pad_into_conv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)
0