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

how to release model data after work done? #54

Open
Digital2Slave opened this issue Feb 8, 2017 · 2 comments
Open

how to release model data after work done? #54

Digital2Slave opened this issue Feb 8, 2017 · 2 comments

Comments

@Digital2Slave
Copy link

Hi sh1r0!
I modified the demo to meet the needs of my own app. The Caffe model I used is about 400+MB, but the sum memory of android phone is just 1GB. So, I want to know how to release the loaded model data in memory.
Could you help me out ? Thanks any way!
Best regards!

@sh1r0
Copy link
Owner

sh1r0 commented Feb 21, 2017

The destruction method (https://github.com/sh1r0/caffe/blob/cmake_android/android/caffe_mobile.cpp#L82) should be exposed to jni layer. I'll fix it later, thanks.

@Digital2Slave
Copy link
Author

@sh1r0 Thanks for your reply. I'm looking for your enhancement. Best regards!

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

No branches or pull requests

2 participants