各位大佬们好,有两个问题想请教:
1.使用config.set_model_from_file();传入模型路径,可以正常创建解释器。但是我如果把模型加密,再解密后使用config.set_model_from_buffer();则会在执行paddle::lite_api::CreatePaddlePredictor(config);时报错:
Paddle-Lite: [F 10/26 16:37:40. 52 .../model_parser/flatbuffers/program_desc.h:52 InitProgramDesc] Check failed: verifier.VerifyBufferpaddle::lite::fbs::proto::ProgramDesc(nullptr): Program verification failed.
请问是哪里出了问题呢?
2.基于ubuntu使用paddleLite,调用config.set_model_from_file();paddle::lite_api::CreatePaddlePredictor(config);时报错
The model format cannot be recognized. Please make sure you use the correct interface and model file
但是,该.nb模型我在android studio上可以正常使用
不知为何
请各位大佬棒棒忙,解答一下,十分感激
1条答案
按热度按时间uz75evzq1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看 官网文档 、 常见问题 、 历史Issue 来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API , FAQ and Github Issue to get the answer.Have a nice day!