Skip to content

Commit 381e176

Browse files
authored
[PHI] Register float16 & bfloat16 for assign_value kernel (#72456)
1 parent f904216 commit 381e176

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

paddle/phi/kernels/assign_kernel.cc

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ PD_REGISTER_KERNEL(assign_value,
138138
double,
139139
int8_t,
140140
int64_t,
141+
phi::dtype::float16,
142+
phi::dtype::bfloat16,
141143
phi::dtype::complex<float>,
142144
phi::dtype::complex<double>) {}
143145

@@ -168,6 +170,8 @@ PD_REGISTER_KERNEL(assign_value,
168170
double,
169171
int8_t,
170172
int64_t,
173+
phi::dtype::float16,
174+
phi::dtype::bfloat16,
171175
phi::dtype::complex<float>,
172176
phi::dtype::complex<double>) {}
173177
#endif

0 commit comments

Comments
 (0)