未验证 提交 5e74ba33 编写于 作者: W WangZhen 提交者: GitHub

Set ALL_BACKEND for shape cpu kernel (#44884)

上级 d5de7886
...@@ -48,7 +48,9 @@ PD_REGISTER_KERNEL(shape, ...@@ -48,7 +48,9 @@ PD_REGISTER_KERNEL(shape,
float, float,
double, double,
phi::dtype::complex<float>, phi::dtype::complex<float>,
phi::dtype::complex<double>) {} phi::dtype::complex<double>) {
kernel->InputAt(0).SetBackend(phi::Backend::ALL_BACKEND);
}
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) #if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
PD_REGISTER_KERNEL(shape, PD_REGISTER_KERNEL(shape,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册