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

示例网络运行有误,求助 #559

Closed
leeqiaogithub opened this issue Sep 3, 2018 · 1 comment
Closed

示例网络运行有误,求助 #559

leeqiaogithub opened this issue Sep 3, 2018 · 1 comment

Comments

@leeqiaogithub
Copy link

运行示例网络squeezenet时detect时发生崩溃,经过排除发现当输出节点从LAYER_fire2_expand3x3=9之后发生错误,
backtrace信息:
ncnn::fastMalloc(unsigned int)
./src/allocator.h:52
ncnn::Padding::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
./src/layer/padding.cpp:233
ncnn::copy_make_border(ncnn::Mat const&, ncnn::Mat&, int, int, int, int, int, float, ncnn::Allocator*, int)
./src/mat.cpp:380
ncnn::Convolution_arm::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
./src/layer/arm/convolution_arm.cpp:382
ncnn::Net::forward_layer(int, std::__ndk1::vector<ncnn::Mat, std::__ndk1::allocatorncnn::Mat >&, ncnn::Option&) const
./src/net.cpp:694
ncnn::Extractor::extract(int, ncnn::Mat&)
./src/net.cpp:835
F:\SDK\SDK\sidect\src\main\cpp\squeezencnn_jni.cpp:153 【extrac()函数位置】

@leeqiaogithub
Copy link
Author

我编译的时候虽然保证linux和android端ndk版本一致,但都选择的是ndk-r17,出现了一堆奇怪的问题,后面讲两边的ndk版本统一为ndk-r15之后,问题就解决了。

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

1 participant