There was an error while loading. Please reload this page.
1 parent adb373c commit 81d1b54Copy full SHA for 81d1b54
paddle/fluid/framework/ir/mkldnn/conv_activation_mkldnn_fuse_pass.cc
@@ -228,12 +228,14 @@ Conv2DHardSigmoidFusePass::Conv2DHardSigmoidFusePass() {
228
.AddOutput("Out")
229
.IsTensor()
230
.End()
231
- // default=0.2
+ // optional, default=0.2
232
.AddAttr("slope")
233
+ .IsOptional()
234
.IsType<float>()
235
- // default=0.5
236
+ // optional, default=0.5
237
.AddAttr("offset")
238
239
240
.End();
241
}
0 commit comments