Skip to content

Commit

Permalink
cherry-pick fix_multihead_int8
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangzheee committed May 26, 2022
1 parent 968b951 commit c2d6c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/framework/ir/multihead_matmul_fuse_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ int MultiHeadMatmulV2FusePass::BuildFusionV2(Graph* graph,

auto* mul0_op_desc = mul0->Op();

// all mul op has same input.
// all mul op has same input. Set int8 attr: Input_scale
if (mul0_op_desc->HasAttr("Input_scale")) {
multihead_op_desc.SetAttr("Input_scale",
mul0_op_desc->GetAttr("Input_scale"));
Expand Down

1 comment on commit c2d6c3d

@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.