We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c40d3c0 commit 0055f36Copy full SHA for 0055f36
onnxoptimizer/passes/fuse_pad_into_conv.h
@@ -165,6 +165,11 @@ struct FusePadIntoConv final : public PredicateBasedPass {
165
conv_pads[conv_pads_size / 2 + j] += pads[pads_size / 2 + i];
166
}
167
168
+ // Clean the auto_pad
169
+ if (conv->hasAttribute(Symbol("auto_pad"))){
170
+ conv->removeAttribute(Symbol("auto_pad"));
171
+ }
172
+
173
conv->is_(kpads, std::move(conv_pads));
174
conv->replaceInput(0, pad->inputs()[0]);
175
pad->destroy();
0 commit comments