From c6c46fb125d6633b787fdcd99dc11c14baac489a Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Fri, 1 Nov 2019 22:15:01 +0800 Subject: [PATCH] add_data (#2346) --- _all_pages/develop/library_tailoring.md | 12 +++++++++--- _all_pages/v2.0.0/library_tailoring.md | 19 +++++++++++++++---- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/_all_pages/develop/library_tailoring.md b/_all_pages/develop/library_tailoring.md index 157acde266..d2454574e7 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 157acde266..84b1ba2e69 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 | + + + + + ## 实现过程: -- GitLab