diff --git a/_all_pages/develop/library_tailoring.md b/_all_pages/develop/library_tailoring.md index 157acde2668a30b8f13628cc8df6d18aa562c746..d2454574e709811b45247aaa118430d57d2953b1 100644 --- a/_all_pages/develop/library_tailoring.md +++ b/_all_pages/develop/library_tailoring.md @@ -11,10 +11,16 @@ Paddle-Lite支持**根据模型裁剪预测库**功能。Paddle-Lite的一般编 ## 效果展示 -| mobilenet_v1 | libpaddle_full_api_shared.so | libpaddle_light_api_shared.so | libpaddle_lite_jni.so | +| 测试模型 | 裁剪开关 | 是否编译控制流相关OP、kernel | libpaddle_lite_jni.so | | ------------------ | ---------------------------- | ----------------------------- | --------------------- | -| mobilenet_v1 | 14M | 14M | 6.2M | -| 裁剪后mobilenet_v1 | 7.7M | 7.5M | 2.5M | +| mobilenetv1(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.3M | +| mobilenetv1(armv8) | 裁剪前–build_tailor=ON | --build_extra=OFF | 788K | +| mobilenetv2(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.3M | +| mobilenetv2(armv8) | 裁剪前–build_tailor=ON | --build_extra=OFF | 912K | +| resnet18(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.3M | +| resnet18(armv8) | 裁剪前–build_tailor=ON | --build_extra=OFF | 912K | +| yolov3(armv7) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.1M | +| yolov3(armv7) | 裁剪前–build_tailor=ON | --build_extra=OFF | 516K | ## 实现过程: diff --git a/_all_pages/v2.0.0/library_tailoring.md b/_all_pages/v2.0.0/library_tailoring.md index 157acde2668a30b8f13628cc8df6d18aa562c746..84b1ba2e6914c85f641ee2cc6b968767648710c1 100644 --- a/_all_pages/v2.0.0/library_tailoring.md +++ b/_all_pages/v2.0.0/library_tailoring.md @@ -9,12 +9,23 @@ title: 裁剪预测库方法 Paddle-Lite支持**根据模型裁剪预测库**功能。Paddle-Lite的一般编译会将所有已注册的operator打包到预测库中,造成库文件体积膨胀;**裁剪预测库**能针对具体的模型,只打包优化后该模型需要的operator,有效降低预测库文件大小。 -## 效果展示 +## 效果展示(Tiny_publish Android动态预测库体积) -| mobilenet_v1 | libpaddle_full_api_shared.so | libpaddle_light_api_shared.so | libpaddle_lite_jni.so | +| 测试模型 | 裁剪开关 | 是否编译控制流相关OP、kernel | libpaddle_lite_jni.so | | ------------------ | ---------------------------- | ----------------------------- | --------------------- | -| mobilenet_v1 | 14M | 14M | 6.2M | -| 裁剪后mobilenet_v1 | 7.7M | 7.5M | 2.5M | +| mobilenetv1(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.3M | +| mobilenetv1(armv8) | 裁剪前–build_tailor=ON | --build_extra=OFF | 788K | +| mobilenetv2(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.3M | +| mobilenetv2(armv8) | 裁剪前–build_tailor=ON | --build_extra=OFF | 912K | +| resnet18(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.3M | +| resnet18(armv8) | 裁剪前–build_tailor=ON | --build_extra=OFF | 912K | +| yolov3(armv7) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.1M | +| yolov3(armv7) | 裁剪前–build_tailor=ON | --build_extra=OFF | 516K | + + + + + ## 实现过程: