From c830a28ef8dbc1859ef37b5694f968bc18a0014a Mon Sep 17 00:00:00 2001 From: haosicheng <47998305+HarperCy@users.noreply.github.com> Date: Tue, 20 Dec 2022 16:16:54 +0800 Subject: [PATCH] disable set_value in kp *test=kunlun (#49153) --- .../phi/kernels/xpu/set_value_grad_kernel.cc | 7 ------- paddle/phi/kernels/xpu/set_value_kernel.cc | 18 ------------------ 2 files changed, 25 deletions(-) diff --git a/paddle/phi/kernels/xpu/set_value_grad_kernel.cc b/paddle/phi/kernels/xpu/set_value_grad_kernel.cc index c759bf20f2..f4ce203145 100644 --- a/paddle/phi/kernels/xpu/set_value_grad_kernel.cc +++ b/paddle/phi/kernels/xpu/set_value_grad_kernel.cc @@ -119,10 +119,3 @@ void SetValueGradKernel(const Context& dev_ctx, } } // namespace phi - -PD_REGISTER_KERNEL(set_value_grad, - XPU, - ALL_LAYOUT, - phi::SetValueGradKernel, - float, - phi::dtype::float16) {} diff --git a/paddle/phi/kernels/xpu/set_value_kernel.cc b/paddle/phi/kernels/xpu/set_value_kernel.cc index 97ca0ea1b2..7d50c57025 100644 --- a/paddle/phi/kernels/xpu/set_value_kernel.cc +++ b/paddle/phi/kernels/xpu/set_value_kernel.cc @@ -145,21 +145,3 @@ void SetValueKernel(const Context& dev_ctx, } } // namespace phi - -PD_REGISTER_KERNEL(set_value, - XPU, - ALL_LAYOUT, - phi::SetValueKernel, - float, - phi::dtype::float16, - int, - int64_t) {} - -PD_REGISTER_KERNEL(set_value_with_tensor, - XPU, - ALL_LAYOUT, - phi::SetTensorValueKernel, - float, - phi::dtype::float16, - int, - int64_t) {} -- GitLab