Skip to content

Commit 245d5bd

Browse files
committed
Fix
1 parent d08822d commit 245d5bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/framework/ir/graph_pattern_detector.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3318,7 +3318,8 @@ PDNode *patterns::MKLDNNInPlace::operator()() {
33183318
auto next_output = pattern->NewNode(next_op_out_repr())->AsOutput();
33193319

33203320
// Check if op is ONE-DNN enabled
3321-
possible_inplace_op->assert_op_attr_or("use_mkldnn", "use_onednn", true);
3321+
possible_inplace_op->assert_op_attr_or<bool>(
3322+
"use_mkldnn", "use_onednn", true);
33223323

33233324
// linked structure
33243325
possible_inplace_op->LinksTo({output});

0 commit comments

Comments
 (0)