From 62d8bcc3066086aa7981bf5cc8a44ca05eee74eb Mon Sep 17 00:00:00 2001 From: RedContritio Date: Fri, 14 Jul 2023 16:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=20[NewIR]=20elementwise=5Fadd=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E6=98=A0=E5=B0=84=E4=BF=AE=E5=A4=8D=20(#5540?= =?UTF-8?q?3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paddle/phi/api/yaml/op_compat.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/paddle/phi/api/yaml/op_compat.yaml b/paddle/phi/api/yaml/op_compat.yaml index 0db2774eaafa4..843a7ff2404e0 100755 --- a/paddle/phi/api/yaml/op_compat.yaml +++ b/paddle/phi/api/yaml/op_compat.yaml @@ -90,10 +90,15 @@ tensor_name : EpsilonTensor - op : add (elementwise_add) - backward : add_grad (elementwise_add_grad) + backward : add_grad (elementwise_add_grad), add_double_grad (elementwise_add_grad_grad), add_triple_grad (elementwise_add_triple_grad) + inputs : + {x : X, y : Y} + outputs : + {out : Out} extra : attrs : [bool use_mkldnn = false, str mkldnn_data_type = "float32", bool use_quantizer = false, float Scale_x = 1.0f, float Scale_y = 1.0f, float Scale_out = 1.0f] + complex_promote : [X, Y] - op : add_n (sum) inputs: