MNN icon indicating copy to clipboard operation
MNN copied to clipboard

使用CPU推理时正常,但是在使用麒麟NPU推理崩溃

Open zhangdaxian8315 opened this issue 1 year ago • 3 comments

使用CPU推理时正常,但是在使用麒麟NPU推理崩溃

1.分析发现给HiAI传入input op,查了下hiai的日志,发现是input op输入有问题: lQLPJxb3uzJsuEvNAUDNBtiwwtGLvbPMBmsG7aPBKFyiAA_1752_320

2.又增加了一些打印,发现在调用setNetworkInput时,由于input Tensor一直不是INPUT类型,导致mInputOps为空,所以最终传给HiAI时没有input op: lQLPKIS3TUL8_JvNA2_NBLewG4NlL3P-AmwG7bRoH8HSAA_1207_879

3.模型文件 sesr_c1.mnn.zip

4.调用MNN的代码 SuperResolutionMnnModule.cc.zip

请问大佬,这个应该如何解决?

zhangdaxian8315 avatar Oct 10 '24 02:10 zhangdaxian8315

不是缺少lihiai_ir_infershape.so的问题。我增加了so,已经不报缺少so的错误了。还是报input operator size 错误

zhangdaxian8315 avatar Oct 10 '24 04:10 zhangdaxian8315

Marking as stale. No activity in 60 days.

github-actions[bot] avatar Dec 16 '24 09:12 github-actions[bot]

在使用hiai后端推理时,要用session api,用module api会有问题。

Qxinyu avatar Mar 31 '25 08:03 Qxinyu

目前使用 Module API 推理 NPU 需要把 shapeMutable 设成 false

jxt1234 avatar May 09 '25 02:05 jxt1234