diff --git a/paddle/phi/api/yaml/ops.yaml b/paddle/phi/api/yaml/ops.yaml index 8e3a6c2f2040cebf6e49021bf909c4b20f979488..38aca867e277eaeabdaf3db312f7e9142167744b 100644 --- a/paddle/phi/api/yaml/ops.yaml +++ b/paddle/phi/api/yaml/ops.yaml @@ -877,6 +877,7 @@ func : IndexPutInferMeta kernel : func : index_put + data_type : x inplace : (x -> out) backward : index_put_grad diff --git a/paddle/phi/kernels/cpu/index_put_grad_kernel.cc b/paddle/phi/kernels/cpu/index_put_grad_kernel.cc index 7374bcd403d12f100b6af69ae1bf909cc38a28b8..7c8ac0624e2d80dec7894e14130b3344eba2849c 100644 --- a/paddle/phi/kernels/cpu/index_put_grad_kernel.cc +++ b/paddle/phi/kernels/cpu/index_put_grad_kernel.cc @@ -183,7 +183,7 @@ void IndexPutGradKernel(const Context& dev_ctx, x.dtype(), value.dtype(), phi::errors::InvalidArgument( - "The data type of tensor in indices must be same to the data type " + "The data type of tensor value must be same to the data type " "of tensor x.")); std::vector tmp_args; std::vector int_indices_v = diff --git a/paddle/phi/kernels/cpu/index_put_kernel.cc b/paddle/phi/kernels/cpu/index_put_kernel.cc index da3e37ac2423649ea63ce5402c0edc934de28881..b35f2e1982ec33a0f1f8cf693a700264ae26ffe1 100644 --- a/paddle/phi/kernels/cpu/index_put_kernel.cc +++ b/paddle/phi/kernels/cpu/index_put_kernel.cc @@ -102,7 +102,7 @@ void IndexPutKernel(const Context& dev_ctx, x.dtype(), value.dtype(), phi::errors::InvalidArgument( - "The data type of tensor in indices must be same to the data type " + "The data type of tensor value must be same to the data type " "of tensor x.")); PADDLE_ENFORCE_EQ(indices.empty(), false, diff --git a/paddle/phi/kernels/gpu/index_put_grad_kernel.cu b/paddle/phi/kernels/gpu/index_put_grad_kernel.cu index 7ae1e42c067cbd6f9400d3d3a138b660e53ee3eb..9dca49ee7ff0fd869780067ef9732f889fd52c36 100644 --- a/paddle/phi/kernels/gpu/index_put_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/index_put_grad_kernel.cu @@ -214,7 +214,7 @@ void IndexPutGradKernel(const Context& dev_ctx, x.dtype(), value.dtype(), phi::errors::InvalidArgument( - "The data type of tensor in indices must be same to the data type " + "The data type of tensor value must be same to the data type " "of tensor x.")); std::vector tmp_args; std::vector int_indices_v = diff --git a/paddle/phi/kernels/gpu/index_put_kernel.cu b/paddle/phi/kernels/gpu/index_put_kernel.cu index ad27993c35244cad0f2327696e060a632bcba744..fd4476fe11d98bee67dcb73a4486749f5cfd0826 100644 --- a/paddle/phi/kernels/gpu/index_put_kernel.cu +++ b/paddle/phi/kernels/gpu/index_put_kernel.cu @@ -110,7 +110,7 @@ void IndexPutKernel(const Context& dev_ctx, x.dtype(), value.dtype(), phi::errors::InvalidArgument( - "The data type of tensor in indices must be same to the data type " + "The data type of tensor value must be same to the data type " "of tensor x.")); PADDLE_ENFORCE_EQ(indices.empty(), false,