From 4d35e6472a877c59950ee64c026646a855876d84 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Mon, 3 Feb 2020 15:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90BUG=20FIX=E3=80=91Fix=20lookup=5Ftable?= =?UTF-8?q?=20OP(#2774)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lite/kernels/arm/lookup_table_compute.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lite/kernels/arm/lookup_table_compute.cc b/lite/kernels/arm/lookup_table_compute.cc index ba58b378f4..af9426f3f4 100644 --- a/lite/kernels/arm/lookup_table_compute.cc +++ b/lite/kernels/arm/lookup_table_compute.cc @@ -72,7 +72,7 @@ REGISTER_LITE_KERNEL(lookup_table, paddle::lite::kernels::arm::LookupTableCompute, def) .BindInput("W", {LiteType::GetTensorTy(TARGET(kARM))}) - .BindInput("Ids", {LiteType::GetTensorTy(TARGET(kARM))}) + .BindInput("Ids", {LiteType::GetTensorTy(TARGET(kARM), PRECISION(kInt64))}) .BindOutput("Out", {LiteType::GetTensorTy(TARGET(kARM))}) .Finalize(); @@ -83,6 +83,6 @@ REGISTER_LITE_KERNEL(lookup_table_v2, paddle::lite::kernels::arm::LookupTableCompute, def) .BindInput("W", {LiteType::GetTensorTy(TARGET(kARM))}) - .BindInput("Ids", {LiteType::GetTensorTy(TARGET(kARM))}) + .BindInput("Ids", {LiteType::GetTensorTy(TARGET(kARM), PRECISION(kInt64))}) .BindOutput("Out", {LiteType::GetTensorTy(TARGET(kARM))}) .Finalize(); -- GitLab