使用Java调用Paddle-Lite报错
Created by: ouyangshixiong
按官方文档编译了PaddleLite v2.6版本,并拷贝了动态链接库进入项目。 model.nb 大小21M,用AIStudio原生开发,然后用opt工具优化后下载过来,应该不存在兼容问题。 报如下错误: 说内存8 比7大,想了解应该怎么才能解决。
[I 9/25 15:28:58.486 ...ads/Paddle-Lite/lite/core/device_info.cc:1085 Setup] Total memory: 7922860KB W/Paddle-Lite: [W 9/25 15:28:58.493 ...e-Lite/lite/model_parser/model_parser.cc:704 LoadModelNaive] WARNING: MobileConfig::set_model_dir and MobileConfig::set_model_buffer are deprecated APIs and will be removed in latter release. MobileConfig::set_model_from_file(const std::string& model_file) and MobileConfig::set_model_from_buffer(const std::string& model_buffer) are recommended. A/Paddle-Lite: [F 9/25 15:28:58.946 ...odel_parser/naive_buffer/naive_buffer.cc:30 Consume] Check failed: bytes <= free_size(): 8!<=7 No free memory of 8, should Require the memory first [F 9/25 15:28:58.946 ...odel_parser/naive_buffer/naive_buffer.cc:30 Consume] Check failed: bytes <= free_size(): 8!<=7 No free memory of 8, should Require the memory first A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x733ba00000 in tid 14155 (plugin1_example), pid 14155 (plugin1_example)