diff --git a/paddle/phi/kernels/cpu/put_along_axis_kernel.cc b/paddle/phi/kernels/cpu/put_along_axis_kernel.cc index d47c2bbbca6d9801ce2ec05daa86cf6a901e9fb6..83c9a915ee6357c4462f64b1e193e546973560ce 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 d5bf5c5cab6974b101a42128a1c69b1fd8dfe741..502db8a22da0bc9ab475243b4d8f646be51ed9d5 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 c46eb73b2f9c878cf591e38c2b10279ccc581cfc..d363c0c28364c065117fe53967234484871979af 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 b1cf98102253ac8129e052effe1e3d71c70503ba..9665a917d9dc4a5fa0d350f8fb635ecec79b7832 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) {}