未验证 提交 3b055199 编写于 作者: C csy0225 提交者: GitHub

Modify the registration information of the interpolate kernel (#52163)

上级 8c888eea
...@@ -223,11 +223,13 @@ void NearestInterpKernel( ...@@ -223,11 +223,13 @@ void NearestInterpKernel(
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
bilinear_interp, XPU, ALL_LAYOUT, phi::BilinearInterpKernel, float) { bilinear_interp, XPU, ALL_LAYOUT, phi::BilinearInterpKernel, float) {
kernel->InputAt(1).SetBackend(phi::Backend::ALL_BACKEND);
kernel->InputAt(2).SetBackend(phi::Backend::ALL_BACKEND); kernel->InputAt(2).SetBackend(phi::Backend::ALL_BACKEND);
kernel->InputAt(3).SetBackend(phi::Backend::ALL_BACKEND); kernel->InputAt(3).SetBackend(phi::Backend::ALL_BACKEND);
} }
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
nearest_interp, XPU, ALL_LAYOUT, phi::NearestInterpKernel, float) { nearest_interp, XPU, ALL_LAYOUT, phi::NearestInterpKernel, float) {
kernel->InputAt(1).SetBackend(phi::Backend::ALL_BACKEND);
kernel->InputAt(2).SetBackend(phi::Backend::ALL_BACKEND); kernel->InputAt(2).SetBackend(phi::Backend::ALL_BACKEND);
kernel->InputAt(3).SetBackend(phi::Backend::ALL_BACKEND); kernel->InputAt(3).SetBackend(phi::Backend::ALL_BACKEND);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册