From 22fde24adacef75abdb0f53ab67348f33fb4be7d Mon Sep 17 00:00:00 2001 From: phlrain Date: Thu, 24 Mar 2022 09:46:49 +0000 Subject: [PATCH] fix erp error --- paddle/phi/kernels/transfer_layout_kernel.cc | 1 - python/paddle/utils/code_gen/backward.yaml | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/phi/kernels/transfer_layout_kernel.cc b/paddle/phi/kernels/transfer_layout_kernel.cc index 3782026bc55..60df877355b 100644 --- a/paddle/phi/kernels/transfer_layout_kernel.cc +++ b/paddle/phi/kernels/transfer_layout_kernel.cc @@ -22,7 +22,6 @@ limitations under the License. */ namespace phi { std::vector GetAxis(const DataLayout& from, const DataLayout& to) { - LOG(ERROR) << from << "\t" << to; PADDLE_ENFORCE_NE( from, to, diff --git a/python/paddle/utils/code_gen/backward.yaml b/python/paddle/utils/code_gen/backward.yaml index 0452a5716da..84eb8e7a55b 100644 --- a/python/paddle/utils/code_gen/backward.yaml +++ b/python/paddle/utils/code_gen/backward.yaml @@ -636,7 +636,7 @@ - backward_api : erf_grad forward : erf (Tensor x) -> Tensor(out) - args : (Tensor x, Tensor out, Tensor out_grad) + args : (Tensor x, Tensor out_grad) output : Tensor(x_grad) infer_meta : func : UnchangedInferMeta @@ -644,7 +644,6 @@ kernel : func : erf_grad data_type : out_grad - layout : out_grad - backward_api : erfinv_grad forward : erf (Tensor x) -> Tensor(out) -- GitLab