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

请问加载forward模型占用的内存可以释放掉吗 #51

Open
youngliuxx opened this issue Jun 8, 2018 · 5 comments
Open

请问加载forward模型占用的内存可以释放掉吗 #51

youngliuxx opened this issue Jun 8, 2018 · 5 comments

Comments

@youngliuxx
Copy link

我们App加载forward了几个模型,占用内存达到了200M,但没找到用来释放这些内存的代码。

@solrex
Copy link
Owner

solrex commented Jun 9, 2018

@youngliuxx 释放内存就是 delete Net 对象。安卓的话 JNI 接口我没有封装,iOS 就很简单了,能直接释放。

@youngliuxx
Copy link
Author

感谢回答,我在iOS端之前也调用了delete Net,只能释放一部份内存,大多数内存还是没有释放掉。

@solrex
Copy link
Owner

solrex commented Jun 14, 2018

@youngliuxx 我来研究一下,以前没尝试这么做过。

@Justin-bin
Copy link

我也有这样的问题,会持有模型的内存无法释放。

@lisasu-g
Copy link

我也有同样的问题

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

4 participants