From 17df45de163e941b2eb3e46b21f8dee0e46de00a Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Wed, 20 Nov 2019 00:46:43 -0600 Subject: [PATCH] Fix IOS compiling guidence doc in source_compile.md and add library_tailoring data in library_tailoring.md test=develop (#2461) --- _all_pages/develop/library_tailoring.md | 20 ++++++++++---------- _all_pages/develop/source_compile.md | 2 +- _all_pages/v2.0.0/library_tailoring.md | 20 ++++++++++---------- _all_pages/v2.0.0/source_compile.md | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/_all_pages/develop/library_tailoring.md b/_all_pages/develop/library_tailoring.md index 1e6963d438..98420c09a9 100644 --- a/_all_pages/develop/library_tailoring.md +++ b/_all_pages/develop/library_tailoring.md @@ -11,16 +11,16 @@ Paddle-Lite支持**根据模型裁剪预测库**功能。Paddle-Lite的一般编 ## 效果展示 -| 测试模型 | 裁剪开关 | 是否编译控制流相关OP、kernel | libpaddle_lite_jni.so | -| ------------------ | ---------------------------- | ----------------------------- | --------------------- | -| mobilenetv1(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.5M | -| mobilenetv1(armv8) | 裁剪后–build_tailor=ON | --build_extra=OFF | 788K | -| mobilenetv2(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.5M | -| mobilenetv2(armv8) | 裁剪后–build_tailor=ON | --build_extra=OFF | 912K | -| inceptionv4(armv7) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 938K | -| inceptionv4(armv7) | 裁剪后–build_tailor=ON | --build_extra=OFF | 512K | -| yolov3(armv7) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 938K | -| yolov3(armv7) | 裁剪后–build_tailor=ON | --build_extra=OFF | 516K | +| 测试模型 | 裁剪开关 | **libpaddle_lite_jni.so** |转化后模型中的OP| +| ------------------ | ---------------------------- | -------- |------------------| +| mobilenetv1(armv8) | 裁剪前--build_tailor=OFF | 1.5M | feed,etch,conv2d,depthwise_conv2d,fc,fpool2d,softmax | +| mobilenetv1(armv8) | 裁剪后--build_tailor=ON | 788K |feed,etch,conv2d,depthwise_conv2d,fc,fpool2d,softmax| +| mobilenetv2(armv8) | 裁剪前--build_tailor=OFF | 1.5M | feed,fetch,conv2d,depthwise_conv2d,elementwise_add,fc,pool2d,relu6,softmax | +| mobilenetv2(armv8) | 裁剪后--build_tailor=ON | 912K |feed,fetch,conv2d,depthwise_conv2d,elementwise_add,fc,pool2d,relu6,softmax| +| inceptionv4(armv7) | 裁剪前--build_tailor=OFF | 938K |feed,fetch,concat,conv2d,dropout,fc,pool2d,softmax| +| inceptionv4(armv7) | 裁剪后--build_tailor=ON | 512K |feed,fetch,concat,conv2d,dropout,fc,pool2d,softmax| +| yolov3(armv7) | 裁剪前--build_tailor=OFF | 938K |feed,fetch,concat,conv2d,depthwise_conv2d,multiclass_nms,nearest_interp,transpose2,yolo_box| +| yolov3(armv7) | 裁剪后--build_tailor=ON |516K |feed,fetch,concat,conv2d,depthwise_conv2d,multiclass_nms,nearest_interp,transpose2,yolo_box| ## 实现过程: diff --git a/_all_pages/develop/source_compile.md b/_all_pages/develop/source_compile.md index bacfe593d9..43149ebf96 100644 --- a/_all_pages/develop/source_compile.md +++ b/_all_pages/develop/source_compile.md @@ -189,7 +189,7 @@ sudo make install #### 交叉编译环境要求 - gcc、git、make、curl、unzip、java -- cmake(建议使用3.10或以上版本) +- cmake(Android编译请使用3.10版本,IOS编译请使用3.15版本) - 编译Android: Android NDK (建议ndk-r17c) - 编译IOS: XCode(Version 10.1) diff --git a/_all_pages/v2.0.0/library_tailoring.md b/_all_pages/v2.0.0/library_tailoring.md index 3779a09f45..c4024e8d66 100644 --- a/_all_pages/v2.0.0/library_tailoring.md +++ b/_all_pages/v2.0.0/library_tailoring.md @@ -11,16 +11,16 @@ Paddle-Lite支持**根据模型裁剪预测库**功能。Paddle-Lite的一般编 ## 效果展示(Tiny_publish Android动态预测库体积) -| 测试模型 | 裁剪开关 | 是否编译控制流相关OP、kernel | libpaddle_lite_jni.so | -| ------------------ | ---------------------------- | ----------------------------- | --------------------- | -| mobilenetv1(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.5M | -| mobilenetv1(armv8) | 裁剪后–build_tailor=ON | --build_extra=OFF | 788K | -| mobilenetv2(armv8) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 1.5M | -| mobilenetv2(armv8) | 裁剪后–build_tailor=ON | --build_extra=OFF | 912K | -| inceptionv4(armv7) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 938K | -| inceptionv4(armv7) | 裁剪后–build_tailor=ON | --build_extra=OFF | 512K | -| yolov3(armv7) | 裁剪前–build_tailor=OFF | --build_extra=OFF | 938K | -| yolov3(armv7) | 裁剪后–build_tailor=ON | --build_extra=OFF | 516K | +| 测试模型 | 裁剪开关 | **libpaddle_lite_jni.so** |转化后模型中的OP| +| ------------------ | ---------------------------- | -------- |------------------| +| mobilenetv1(armv8) | 裁剪前--build_tailor=OFF | 1.5M | feed,etch,conv2d,depthwise_conv2d,fc,fpool2d,softmax | +| mobilenetv1(armv8) | 裁剪后--build_tailor=ON | 788K |feed,etch,conv2d,depthwise_conv2d,fc,fpool2d,softmax| +| mobilenetv2(armv8) | 裁剪前--build_tailor=OFF | 1.5M | feed,fetch,conv2d,depthwise_conv2d,elementwise_add,fc,pool2d,relu6,softmax | +| mobilenetv2(armv8) | 裁剪后--build_tailor=ON | 912K |feed,fetch,conv2d,depthwise_conv2d,elementwise_add,fc,pool2d,relu6,softmax| +| inceptionv4(armv7) | 裁剪前--build_tailor=OFF | 938K |feed,fetch,concat,conv2d,dropout,fc,pool2d,softmax| +| inceptionv4(armv7) | 裁剪后--build_tailor=ON | 512K |feed,fetch,concat,conv2d,dropout,fc,pool2d,softmax| +| yolov3(armv7) | 裁剪前--build_tailor=OFF | 938K |feed,fetch,concat,conv2d,depthwise_conv2d,multiclass_nms,nearest_interp,transpose2,yolo_box| +| yolov3(armv7) | 裁剪后--build_tailor=ON |516K |feed,fetch,concat,conv2d,depthwise_conv2d,multiclass_nms,nearest_interp,transpose2,yolo_box| diff --git a/_all_pages/v2.0.0/source_compile.md b/_all_pages/v2.0.0/source_compile.md index 6732c6f008..2ac08a5f1c 100644 --- a/_all_pages/v2.0.0/source_compile.md +++ b/_all_pages/v2.0.0/source_compile.md @@ -189,7 +189,7 @@ sudo make install #### 交叉编译环境要求 - gcc、git、make、curl、unzip、java -- cmake(建议使用3.10或以上版本) +- cmake(Android编译请使用3.10版本,IOS编译请使用3.15版本) - 编译Android: Android NDK (建议ndk-r17c) - 编译IOS: XCode(Version 10.1) -- GitLab