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

“大”矩阵运算crash m:1 n:6949 k:3200 #23

Closed
xinyu391 opened this issue Sep 26, 2017 · 5 comments
Closed

“大”矩阵运算crash m:1 n:6949 k:3200 #23

xinyu391 opened this issue Sep 26, 2017 · 5 comments

Comments

@xinyu391
Copy link

Demo项目中加载我司的模型,跑到后面crash
m:1 n:6949 k:3200

#00 pc 00000000000310c4 /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::Gemmer::pack_kxNR(int, float const*, int, int, float*)+24)
#1 pc 0000000000031194 /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::Gemmer::pack_B(int, int, float const*, int, int, float*)+156)
#2 pc 0000000000031fa4 /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::Gemmer::dgemm_nn(int, int, int, float, float const*, int, int, float const*, int, int, float, float*, int, int)+600)
#3 pc 000000000003216c /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::Gemmer::sgemm(int, int, int, float const*, float const*, float*)+52)
#4 pc 00000000000258ac /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::FCLayer::forward(int)+532)
#5 pc 0000000000034c18 /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::Net::forward_from_to(float*, int, int, bool)+1172)
#6 pc 000000000003546c /data/app/com.baidu.mdl.demo-1/lib/arm64/libmdl.so (mdl::Net::predict(float*)+36)

@xinyu391
Copy link
Author

经过其他同事分析,应该是模型转换工具有bug,第二个FC层输出大小错误。
最后的矩阵不应该是m:1 n:6949 k:3200
而应该是m:1 n:6949 k:128
代码没看懂,强制把这一层的输出大小 改成正确的,就可以跑了

@cocodark
Copy link
Contributor

感谢反馈,你们用的什么模型呢?

@xinyu391
Copy link
Author

caffe模型,还需要其他什么信息吗?

@cocodark
Copy link
Contributor

什么网络结构呢

@xinyu391
Copy link
Author

我们自己定的网络结构。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants