Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
de288627
S
Serving
项目概览
PaddlePaddle
/
Serving
1 年多 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
de288627
编写于
7月 17, 2020
作者:
B
barrierye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add pipeline test
上级
94b8df31
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
104 addition
and
0 deletion
+104
-0
tools/serving_build.sh
tools/serving_build.sh
+104
-0
未找到文件。
tools/serving_build.sh
浏览文件 @
de288627
...
...
@@ -691,6 +691,109 @@ function python_test_resnet50(){
cd
..
}
function
python_test_pipeline
(){
# pwd:/ Serving/python/examples
local
TYPE
=
$1
export
SERVING_BIN
=
${
SERVING_WORKDIR
}
/build-server-
${
TYPE
}
/core/general-server/serving
unsetproxy
cd
pipeline/imdb_model_ensemble
case
$TYPE
in
CPU
)
# start paddle serving service (brpc)
sh get_data.sh
python
-m
paddle_serving_server.serve
--model
imdb_cnn_model
--port
9292 &> cnn.log &
python
-m
paddle_serving_server.serve
--model
imdb_bow_model
--port
9393 &> bow.log &
sleep
5
# test: thread servicer & thread op
cat
<<
EOF
> config.yaml
port: 18080
worker_num: 2
build_dag_each_worker: false
dag:
is_thread_op: true
client_type: brpc
retry: 1
use_profile: false
EOF
python test_pipeline_server.py
>
/dev/null/ &
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
# test: thread servicer & process op
cat
<<
EOF
> config.yaml
port: 18080
worker_num: 2
build_dag_each_worker: false
dag:
is_thread_op: false
client_type: brpc
retry: 1
use_profile: false
EOF
python test_pipeline_server.py
>
/dev/null/ &
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
# test: process servicer & thread op
cat
<<
EOF
> config.yaml
port: 18080
worker_num: 2
build_dag_each_worker: true
dag:
is_thread_op: flase
client_type: brpc
retry: 1
use_profile: false
EOF
python test_pipeline_server.py
>
/dev/null/ &
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
# test: process servicer & process op
cat
<<
EOF
> config.yaml
port: 18080
worker_num: 2
build_dag_each_worker: false
dag:
is_thread_op: false
client_type: brpc
retry: 1
use_profile: false
EOF
python test_pipeline_server.py
>
/dev/null/ &
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_server_process
# start paddle serving service (grpc)
python
-m
paddle_serving_server.serve
--model
imdb_cnn_model
--port
9292
--use_multilang
&> cnn.log &
python
-m
paddle_serving_server.serve
--model
imdb_bow_model
--port
9393
--use_multilang
&> bow.log &
sleep
5
python test_pipeline_server.py
>
/dev/null/ &
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_server_process
;;
GPU
)
echo
"pipeline ignore GPU test"
;;
*
)
echo
"error type"
exit
1
;;
esac
cd
../../
setproxy
unset
SERVING_BIN
}
function
python_app_api_test
(){
#pwd:/ Serving/python/examples
#test image reader
...
...
@@ -726,6 +829,7 @@ function python_run_test() {
python_test_yolov4
$TYPE
# pwd: /Serving/python/examples
python_test_grpc_impl
$TYPE
# pwd: /Serving/python/examples
python_test_resnet50
$TYPE
# pwd: /Serving/python/examples
python_test_pipeline
$TYPE
# pwd: /Serving/python/examples
echo
"test python
$TYPE
part finished as expected."
cd
../..
# pwd: /Serving
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录