We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当前通过CMake最小编译出来的Paddle预测程序大小是7.38M。其中预测程序链接时依赖的库如下。
The text was updated successfully, but these errors were encountered:
不知道在android上面用的话能不能先gzip一下.so再存到app里,读取的时候解压一下放在cache文件夹里,以后就不用再解压了。
Sorry, something went wrong.
关于减小Paddle bin大小中的第2点。目前Paddle中占大多数的是计算相关的代码,主要编译在libpaddle_gserver.a, libpaddle_function.a和libpaddle_math.a里面。其中libpaddle_gserver.a, libpaddle_function.a是whole archive,而math中的计算函数主要都实现在了BaseMatrix.cu, Matrix.cpp.cpp里面,也是相当于whole archive。 所以,进一步减少Paddle bin大小的方法,需要将这些计算函数每一个都实现成一个独立的Function,并独立编译,然后根据预测模型依赖的Function,链接出包含最小计算功能的Paddle bin。
不知道在android上面用的话能不能先gzip一下.so再存到app里
Android里面打包成apk时是会对.so进行压缩的。
hedaoyuan
Successfully merging a pull request may close this issue.
Paddle bin
当前通过CMake最小编译出来的Paddle预测程序大小是7.38M。其中预测程序链接时依赖的库如下。
减小Paddle bin大小的方法
The text was updated successfully, but these errors were encountered: