Skip to content

Commit 05f0731

Browse files
authored
register fp16 bf16 for shape64 cpu kernel (#71764)
1 parent 09961b0 commit 05f0731

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paddle/phi/kernels/shape_kernel.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ PD_REGISTER_KERNEL(shape64,
137137
float,
138138
double,
139139
phi::dtype::complex<float>,
140-
phi::dtype::complex<double>) {
140+
phi::dtype::complex<double>,
141+
phi::dtype::float16,
142+
phi::dtype::bfloat16) {
141143
kernel->InputAt(0).SetBackend(phi::Backend::ALL_BACKEND);
142144
kernel->OutputAt(0).SetBackend(phi::Backend::CPU);
143145
kernel->OutputAt(0).SetDataType(phi::DataType::INT64);

0 commit comments

Comments
 (0)