Skip to content

Commit

Permalink
fix (#51552)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxn12138 authored Mar 14, 2023
1 parent 2876f6f commit c3f8ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions paddle/phi/kernels/cpu/index_select_grad_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ PD_REGISTER_KERNEL(index_select_grad,
phi::IndexSelectGradKernel,
float,
double,
phi::dtype::bfloat16,
int,
int64_t) {}
2 changes: 1 addition & 1 deletion python/paddle/tensor/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def index_select(x, index, axis=0, name=None):
check_variable_and_dtype(
x,
'x',
['bfloat16', 'float16', 'float32', 'float64', 'int32', 'int64'],
['uint16', 'float16', 'float32', 'float64', 'int32', 'int64'],
'paddle.tensor.search.index_select',
)
check_variable_and_dtype(
Expand Down

0 comments on commit c3f8ba9

Please sign in to comment.