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

ex.extract()出现错误 #555

Open
leeqiaogithub opened this issue Aug 31, 2018 · 1 comment
Open

ex.extract()出现错误 #555

leeqiaogithub opened this issue Aug 31, 2018 · 1 comment

Comments

@leeqiaogithub
Copy link

我将示例中的模型替换为我自己的模型之后,点击识图发生崩溃
通过查看log发现:
ncnn::Extractor ex = squeezenet.create_extractor();
ex.input(l2_net_param_id::BLOB_data, in);
ncnn::Mat out;
int flag = ex.extract(l2_net_param_id::BLOB_prob, out);
执行完extract()函数后flag=-1,通过addr2line查看native层错误,显示报错发生在mat.h文件的第631行,即allocator->fastFree(data);之处,请问下是什么原因呢?模型文件和libncnn.a都是我新生成的

@leeqiaogithub
Copy link
Author

我再使用ncnn的过程中,碰到很多crash的问题,很多提示都是ncnn源码里面的问题,请问下ncnn有log机制吗?怎么能快速的定位问题呢?

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