Open litonghui opened 2 months ago
麻烦提供下模型,paddle 模型应该不会有 feed 算子
以提供,辛苦
以提供,辛苦
v2.10版本过老,建议更新到 v2.13再试试
不是不用新版本,是新版本用不起来......,如下是v2.13rc 运行log,与2.12 一样的错,opt 用github 最新的转模型。
2024-04-08 14:36:33.577 24631-24631 Paddle-Lite com.hui.var.virtual I [I 4/ 8 14:36:33.577 ...and/Paddle-Lite/lite/core/device_info.cc:1331 Setup] SVE2 f32mm support: 0 2024-04-08 14:36:33.577 24631-24631 Paddle-Lite com.hui.var.virtual I [I 4/ 8 14:36:33.577 ...and/Paddle-Lite/lite/core/device_info.cc:1332 Setup] SVE2 i8mm support: 0 2024-04-08 14:36:33.581 24631-24631 Paddle-Lite com.hui.var.virtual A [F 4/ 8 14:36:33.581 /island/Paddle-Lite/lite/core/program.cc RuntimeProgram:316] Check failed: op: Error: This model is not supported, because operator 'feed' is not supported by Paddle-Lite. 2024-04-08 14:36:33.581 24631-24631 libc com.hui.var.virtual A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 24631 (idu.var.virtual), pid 24631 (idu.var.virtual) ---------------------------- PROCESS STARTED (24688) for package com.hui.var.virtual ---------------------------- 2024-04-08 14:36:33.752 24686-24686 DEBUG pid-24686 A Cmdline: com.hui.var.virtual 2024-04-08 14:36:33.752 24686-24686 DEBUG pid-24686 A pid: 24631, tid: 24631, name: idu.var.virtual >>> com.hui.var.virtual <<< 2024-04-08 14:36:33.752 24686-24686 DEBUG pid-24686 A #01 pc 00000000001c15a4 /data/app/~~CVy8FFm2d23qP-aTH5aRwA==/com.hui.var.virtual-1KvodUORM4sE1Roq0tpGNg==/lib/arm64/libvk_virtual_sdk.so (BuildId: 4ae9e1a239b2de282f6d87386db96f2041c9b59d)
你是不是用的是静态库啊? 如果要用静态库,一定要引用这三个头文件:
版本、环境信息: 1)Paddle Lite 版本:请提供您的 Paddle Lite 版本号(如v2.10)或 CommitID 版本v2.10,CommitID b427cac010c2b4f303f906f3e35f5eae5539bc28 2)Host 环境:请描述 Host 系统类型、OS 版本,如 Mac OS 10.14、Ubuntu 18.04 Ubuntu 20.04,参考 OpenHarmony-SIG / tpc_c_cplusplus 可以成功编译Paddle-Llite 2.12 ,模型加载时候报错,同时验证 2.12 Android 版本模型加载也失败
RuntimeProgram:316] Check failed: op: Error: This model is not supported, because operator 'feed' is not supported by Paddle-Lite.
考虑CommitID b427cac010c2b4f303f906f3e35f5eae5539bc28 提交可能没有合入v2.12 ,尝试编译线上版本模型对应PaddleLite v2.10 commit id b427cac010c2b4f303f906f3e35f5eae5539bc28 出现编译报错问题。编译方式 准备编译环境,在thirdparty 重新拷贝一份Paddle-Lite 改名字Paddle-Lite-2.10 cd/tpc_c_cplusplus/thirdparty cp -r Paddle-Lite Paddle-Lite-2.10 替换 HPKBUILD 替换 Paddle-Lite_oh_pkg.patch 拷贝 cp -r github/Paddle-Lite-v2.10.zip . 计算 sha512sum Paddle-Lite-v2.10.zip ,修改 SHA512SUM 里面内容 开始编译: ./build.sh Paddle-Lite-2.10
信息