未验证 提交 cfe3b40a 编写于 作者: W wenbin 提交者: GitHub

remove unsafty judgement (#33868)

上级 e75b6921
......@@ -226,11 +226,6 @@ void ConvAffineChannelFusePass::ApplyImpl(ir::Graph* graph) const {
desc.SetAttr("axis", 1);
desc.SetAttr("use_mkldnn", conv->Op()->GetAttrIfExists<bool>("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});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册