Skip to content

Commit

Permalink
delete the compat(desc)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengshuai03 committed Jun 30, 2021
1 parent 0dededd commit 1afe61e
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ void ConvActivationFusePass::ApplyImpl(ir::Graph* graph) const {
desc->SetAttr("fuse_beta",
activation->Op()->GetAttrIfExists<float>("beta"));

if (!IsCompat(*desc)) {
LOG(WARNING) << "conv_activation_mkldnn_fuse_pass: ConvActivation op "
"compat failed.";
return;
}

GraphSafeRemoveNodes(graph, {activation, conv_out});

PADDLE_ENFORCE_GT(subgraph.count(conv_input), 0UL,
Expand Down

1 comment on commit 1afe61e

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.