From e5b716718e8c98964ae0eb847505c5ce7fa87f2c Mon Sep 17 00:00:00 2001 From: zhangbo9674 <82555433+zhangbo9674@users.noreply.github.com> Date: Fri, 18 Aug 2023 15:18:07 +0800 Subject: [PATCH] fix gpt bug (#56419) --- paddle/fluid/ir/dialect/utils.cc | 6 +----- paddle/phi/api/yaml/op_compat.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/paddle/fluid/ir/dialect/utils.cc b/paddle/fluid/ir/dialect/utils.cc index 3aa2fdca748..4e22d243faa 100644 --- a/paddle/fluid/ir/dialect/utils.cc +++ b/paddle/fluid/ir/dialect/utils.cc @@ -18,11 +18,7 @@ namespace paddle { namespace dialect { const std::unordered_set LegacyOpList = { - "pd.fused_softmax_mask_upper_triangle", - "pd.fused_softmax_mask_upper_triangle_grad", - "pd.load_combine", - "pd.c_concat", - "pd.c_broadcast_"}; + "pd.load_combine", "pd.c_concat", "pd.c_broadcast_"}; enum class AttrType { UNDEFINED = 0, diff --git a/paddle/phi/api/yaml/op_compat.yaml b/paddle/phi/api/yaml/op_compat.yaml index 99b03385b71..0047ffce568 100755 --- a/paddle/phi/api/yaml/op_compat.yaml +++ b/paddle/phi/api/yaml/op_compat.yaml @@ -457,7 +457,7 @@ outputs : out : Out -- op : check_finite_and_unscale_ +- op : check_finite_and_unscale_(check_finite_and_unscale) inputs : {x : X, scale: Scale} outputs : @@ -2937,7 +2937,7 @@ outputs : out : Y -- op : update_loss_scaling_ +- op : update_loss_scaling_(update_loss_scaling) inputs : {x : X, found_infinite : FoundInfinite, prev_loss_scaling : PrevLossScaling, in_good_steps : InGoodSteps, in_bad_steps : InBadSteps} outputs : @@ -3027,6 +3027,12 @@ attrs: pivot : pivots +- op: memcpy_d2h + inputs : + x : X + outputs : + out : Out + - op: reindex_graph (graph_reindex) inputs : {x : X, neighbors : Neighbors, count : Count, hashtable_value : HashTable_Value, hashtable_index : HashTable_Index} -- GitLab