Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

How to reduce libmxnet.so file size #19724

Answered by leezu
bykim555 asked this question in Q&A
Discussion options

You must be logged in to vote

ci/build.py -p android_armv7 is not optimized for size. You should be able to reduce the size by adding -DCMAKE_BUILD_TYPE=Release option to the cmake call in ci/docker/runtime_functions.sh. You can also manually run strip --strip-unneeded libmxnet.so after the build.

Finally, if you only need to support a known set of networks / operations, you can delete unneeded operators in src/operator before the build.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by szha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants