Skip to content

Commit

Permalink
fix kunlun sharding v2 bug. Sharding v2 need inplace assign (#64209)
Browse files Browse the repository at this point in the history
Co-authored-by: QingshuChen <Qingshu.Chen714@gamil.com>
  • Loading branch information
QingshuChen and QingshuChen committed May 11, 2024
1 parent 32a4fe7 commit bedd212
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paddle/phi/backends/xpu/xpu3_op_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,15 @@ XPUOpMap& get_kl3_ops() {
phi::DataType::FLOAT64,
phi::DataType::INT32,
phi::DataType::FLOAT16,
phi::DataType::BFLOAT16,
phi::DataType::INT64,
phi::DataType::BOOL})},
{"assign_value",
XPUKernelSet({phi::DataType::FLOAT32,
phi::DataType::INT32,
phi::DataType::INT64,
phi::DataType::FLOAT16,
phi::DataType::BFLOAT16,
phi::DataType::BOOL})},
{"atan", XPUKernelSet({phi::DataType::FLOAT32, phi::DataType::FLOAT16})},
{"atan_grad",
Expand Down
2 changes: 2 additions & 0 deletions paddle/phi/kernels/assign_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ PD_REGISTER_KERNEL(assign_value,
bool,
int,
float,
phi::dtype::bfloat16,
phi::dtype::float16,
double,
int64_t,
phi::dtype::complex<float>,
Expand Down

0 comments on commit bedd212

Please sign in to comment.