未验证 提交 79bc9c0d 编写于 作者: C chalsliu 提交者: GitHub

Fix fc_xpu_fuse_pass Attribute (beta) is not set correctly error (#51801)

上级 62712aec
...@@ -272,8 +272,6 @@ int FcXPUFusePass::ApplyImpl(ir::Graph* graph, ...@@ -272,8 +272,6 @@ int FcXPUFusePass::ApplyImpl(ir::Graph* graph,
if (mul_type == "matmul") { if (mul_type == "matmul") {
fc_xpu_op_desc.SetAttr( fc_xpu_op_desc.SetAttr(
"alpha", PADDLE_GET_CONST(float, mul->Op()->GetAttr("alpha"))); "alpha", PADDLE_GET_CONST(float, mul->Op()->GetAttr("alpha")));
fc_xpu_op_desc.SetAttr(
"beta", PADDLE_GET_CONST(float, mul->Op()->GetAttr("beta")));
} }
fc_xpu_op_desc.SetAttr("act_type", 0); fc_xpu_op_desc.SetAttr("act_type", 0);
fc_xpu_op_desc.SetAttr("act_alpha", 0.f); fc_xpu_op_desc.SetAttr("act_alpha", 0.f);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册