Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
a2edb27c
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a2edb27c
编写于
7月 08, 2019
作者:
Y
Yanzhan Yang
提交者:
GitHub
7月 08, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1. add include auto generation script. 2. add private repo script. (#1735)
上级
33247b0e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
73 addition
and
0 deletion
+73
-0
tools/shell/generate-include/.gitignore
tools/shell/generate-include/.gitignore
+2
-0
tools/shell/generate-include/check_include_diff.sh
tools/shell/generate-include/check_include_diff.sh
+30
-0
tools/shell/generate-include/main.cpp
tools/shell/generate-include/main.cpp
+6
-0
tools/shell/generate-include/parse.py
tools/shell/generate-include/parse.py
+21
-0
tools/shell/generate-include/run.sh
tools/shell/generate-include/run.sh
+9
-0
tools/shell/restore-private-repo.sh
tools/shell/restore-private-repo.sh
+5
-0
未找到文件。
tools/shell/generate-include/.gitignore
0 → 100644
浏览文件 @
a2edb27c
include
include.zip
tools/shell/generate-include/check_include_diff.sh
0 → 100644
浏览文件 @
a2edb27c
#!/usr/bin/env
include1
=
$1
include2
=
$2
root
=
$(
pwd
)
cd
$include1
list1
=
$(
find
.
-name
"*"
|
sort
-n
|
uniq
)
cd
$root
echo
"
$list1
"
>
include1.list
cd
$include2
list2
=
$(
find
.
-name
"*"
|
sort
-n
|
uniq
)
cd
$root
echo
"
$list2
"
>
include2.list
diff include1.list include2.list
if
[
"
$?
"
=
"0"
]
then
echo
"no diff"
else
echo
"has diff"
fi
rm
include1.list
rm
include2.list
echo
"done"
tools/shell/generate-include/main.cpp
0 → 100644
浏览文件 @
a2edb27c
#include "io/paddle_mobile.h"
#include "io/paddle_inference_api.h"
int
main
()
{
return
0
;
}
tools/shell/generate-include/parse.py
0 → 100644
浏览文件 @
a2edb27c
import
sys
output
=
""
for
line
in
sys
.
stdin
:
line
.
strip
()
tag
=
"
\\
"
if
tag
in
line
:
index
=
line
.
index
(
"
\\
"
)
line
=
line
[:
index
]
output
+=
line
for
line
in
output
.
split
(
" "
):
line
=
line
.
strip
()
if
"/Applications"
in
line
:
continue
if
len
(
line
)
<=
0
:
continue
if
not
line
.
endswith
(
".h"
):
continue
if
not
line
.
startswith
(
"../../../src/"
):
continue
print
(
line
[
len
(
"../../../src/"
):])
tools/shell/generate-include/run.sh
0 → 100755
浏览文件 @
a2edb27c
#!/usr/bin/env bash
rm
-rf
include
mkdir
include
g++
-I
../../../src/
-M
main.cpp | python parse.py | xargs
-I
% sh
-c
"dirname %"
|
sort
|
uniq
| xargs
-I
% sh
-c
"mkdir -p include/%"
g++
-I
../../../src/
-M
main.cpp | python parse.py | xargs
-I
% sh
-c
"cp ../../../src/% include/%"
tools/shell/restore-private-repo.sh
0 → 100644
浏览文件 @
a2edb27c
#!/usr/bin/env bash
git clone https://icode.baidu.com/baidu/bdbox/paddle-mobile-private-repo/
cp
-R
paddle-mobile-private-repo/paddle-mobile-metallib ../../metal/
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录