From c0bcbd371414601e3c48047e272922ad06843fc8 Mon Sep 17 00:00:00 2001 From: phlrain Date: Mon, 21 Mar 2022 03:17:07 +0000 Subject: [PATCH] remove useless code --- paddle/phi/kernels/cpu/put_along_axis_kernel.cc | 4 +--- paddle/phi/kernels/cpu/take_along_axis_kernel.cc | 4 +--- paddle/phi/kernels/gpu/put_along_axis_kernel.cu | 4 +--- paddle/phi/kernels/gpu/take_along_axis_kernel.cu | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/paddle/phi/kernels/cpu/put_along_axis_kernel.cc b/paddle/phi/kernels/cpu/put_along_axis_kernel.cc index d47c2bbbca..83c9a915ee 100644 --- a/paddle/phi/kernels/cpu/put_along_axis_kernel.cc +++ b/paddle/phi/kernels/cpu/put_along_axis_kernel.cc @@ -84,6 +84,4 @@ PD_REGISTER_KERNEL(put_along_axis, double, int, uint8_t, - int64_t) { - kernel->InputAt(1).SetDataType(phi::DataType::ALL_DTYPE); -} + int64_t) {} diff --git a/paddle/phi/kernels/cpu/take_along_axis_kernel.cc b/paddle/phi/kernels/cpu/take_along_axis_kernel.cc index d5bf5c5cab..502db8a22d 100644 --- a/paddle/phi/kernels/cpu/take_along_axis_kernel.cc +++ b/paddle/phi/kernels/cpu/take_along_axis_kernel.cc @@ -57,6 +57,4 @@ PD_REGISTER_KERNEL(take_along_axis, double, int, uint8_t, - int64_t) { - kernel->InputAt(1).SetDataType(phi::DataType::ALL_DTYPE); -} + int64_t) {} diff --git a/paddle/phi/kernels/gpu/put_along_axis_kernel.cu b/paddle/phi/kernels/gpu/put_along_axis_kernel.cu index c46eb73b2f..d363c0c283 100644 --- a/paddle/phi/kernels/gpu/put_along_axis_kernel.cu +++ b/paddle/phi/kernels/gpu/put_along_axis_kernel.cu @@ -83,6 +83,4 @@ PD_REGISTER_KERNEL(put_along_axis, double, int64_t, int, - phi::dtype::float16) { - kernel->InputAt(1).SetDataType(phi::DataType::ALL_DTYPE); -} + phi::dtype::float16) {} diff --git a/paddle/phi/kernels/gpu/take_along_axis_kernel.cu b/paddle/phi/kernels/gpu/take_along_axis_kernel.cu index b1cf981022..9665a917d9 100644 --- a/paddle/phi/kernels/gpu/take_along_axis_kernel.cu +++ b/paddle/phi/kernels/gpu/take_along_axis_kernel.cu @@ -57,6 +57,4 @@ PD_REGISTER_KERNEL(take_along_axis, double, int64_t, int, - phi::dtype::float16) { - kernel->InputAt(1).SetDataType(phi::DataType::ALL_DTYPE); -} + phi::dtype::float16) {} -- GitLab