From 79bc9c0d94f2353dca7b9fd901b8f59d5b231b55 Mon Sep 17 00:00:00 2001 From: chalsliu <45041955+chalsliu@users.noreply.github.com> Date: Mon, 20 Mar 2023 17:37:19 +0800 Subject: [PATCH] Fix fc_xpu_fuse_pass Attribute (beta) is not set correctly error (#51801) --- paddle/fluid/framework/ir/xpu/fc_xpu_fuse_pass.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddle/fluid/framework/ir/xpu/fc_xpu_fuse_pass.cc b/paddle/fluid/framework/ir/xpu/fc_xpu_fuse_pass.cc index e37eaceb4f7..cd9febd8ec8 100644 --- a/paddle/fluid/framework/ir/xpu/fc_xpu_fuse_pass.cc +++ b/paddle/fluid/framework/ir/xpu/fc_xpu_fuse_pass.cc @@ -272,8 +272,6 @@ int FcXPUFusePass::ApplyImpl(ir::Graph* graph, if (mul_type == "matmul") { fc_xpu_op_desc.SetAttr( "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_alpha", 0.f); -- GitLab