PaddleNLP icon indicating copy to clipboard operation
PaddleNLP copied to clipboard

[Question]: ernie-3.0-tiny 在Android上运行,无法推理

Open wslin1994 opened this issue 1 year ago • 1 comments

请提出你的问题

参考文档:https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/ernie-tiny/deploy/android 基于ernie-3.0-tiny-nano-v2-zh训练的文本分类模型。代码clone的上面连接的demo,去除了ner相关的输入,模型替换为了自己训练的分类模型。

参考了这个https://github.com/PaddlePaddle/Paddle-Lite/issues/10005 ,将模型输入修改为int32 ,还是同样报错。 image

模型输入为int64时报错为: A/Paddle-Lite: [F 7/28 14:52:20.578 ...lite/kernels/arm/lookup_table_compute.cc:53 Run] Check failed: (ids_data[i] < row_number): 1911260446721!<40000 look uptable ids[i] < row_number check failed

wslin1994 avatar Jul 28 '23 10:07 wslin1994

感谢您的反馈,目前没有在android上开发的计划,欢迎开发者进行贡献。

w5688414 avatar May 07 '24 09:05 w5688414