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

关于rknn_output中使用prealloc的相关问题 #48

Open
chentaowu opened this issue May 25, 2023 · 0 comments
Open

关于rknn_output中使用prealloc的相关问题 #48

chentaowu opened this issue May 25, 2023 · 0 comments

Comments

@chentaowu
Copy link

当我使用了预分配的内存作为输出缓存时,设置了is_prealloc为true,size大小为正确的大小,index为输出的对应索引,此时无法获得正确的结果,获得结果均为0。
不使用预分配内存时能够获取正确的结果,请问是什么原因?
如果不使用预分配内存的情况下,是不是每次推理结束都要调用rknn_outputs_release这个接口去释放内存,如果不在每次推理结束后调用,而是等整个进程结束后调用,是否会引起内存泄漏?

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