Skip to content

Commit bedd212

Browse files
QingshuChenQingshuChen
and
QingshuChen
authored
fix kunlun sharding v2 bug. Sharding v2 need inplace assign (#64209)
Co-authored-by: QingshuChen <Qingshu.Chen714@gamil.com>
1 parent 32a4fe7 commit bedd212

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

paddle/phi/backends/xpu/xpu3_op_list.cc

+3
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,15 @@ XPUOpMap& get_kl3_ops() {
6464
phi::DataType::FLOAT64,
6565
phi::DataType::INT32,
6666
phi::DataType::FLOAT16,
67+
phi::DataType::BFLOAT16,
6768
phi::DataType::INT64,
6869
phi::DataType::BOOL})},
6970
{"assign_value",
7071
XPUKernelSet({phi::DataType::FLOAT32,
7172
phi::DataType::INT32,
7273
phi::DataType::INT64,
74+
phi::DataType::FLOAT16,
75+
phi::DataType::BFLOAT16,
7376
phi::DataType::BOOL})},
7477
{"atan", XPUKernelSet({phi::DataType::FLOAT32, phi::DataType::FLOAT16})},
7578
{"atan_grad",

paddle/phi/kernels/assign_kernel.cc

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ PD_REGISTER_KERNEL(assign_value,
196196
bool,
197197
int,
198198
float,
199+
phi::dtype::bfloat16,
200+
phi::dtype::float16,
199201
double,
200202
int64_t,
201203
phi::dtype::complex<float>,

0 commit comments

Comments
 (0)