From cfe3b40a8583403f1c9465b8924f68ff9de1acd7 Mon Sep 17 00:00:00 2001 From: wenbin Date: Thu, 1 Jul 2021 10:56:44 +0800 Subject: [PATCH] remove unsafty judgement (#33868) --- paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.cc b/paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.cc index 7334d9ad46..e4ac89f04f 100644 --- a/paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.cc +++ b/paddle/fluid/framework/ir/conv_affine_channel_fuse_pass.cc @@ -226,11 +226,6 @@ void ConvAffineChannelFusePass::ApplyImpl(ir::Graph* graph) const { desc.SetAttr("axis", 1); desc.SetAttr("use_mkldnn", conv->Op()->GetAttrIfExists("use_mkldnn")); - if (!IsCompat(desc)) { - LOG(WARNING) << "ConvAffineChannelFusePass in out fc op compat failed."; - return; - } - auto eltwise_op = g->CreateOpNode(&desc); // OpDesc will be copied. GraphSafeRemoveNodes(graph, {ac_scale, ac_bias, affine_channel}); -- GitLab