Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhangdaxian8315 opened this issue Oct 10, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@zhangdaxian8315
Copy link

zhangdaxian8315 commented Oct 10, 2024

使用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
Copy link
Author

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

@jxt1234 jxt1234 added the bug Something isn't working label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants