Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
7cdfbf5b
S
Serving
项目概览
PaddlePaddle
/
Serving
接近 2 年 前同步成功
通知
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看板
提交
7cdfbf5b
编写于
1月 05, 2022
作者:
F
felixhjh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify env_check help command
上级
011ea89a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
9 deletion
+20
-9
python/paddle_serving_server/env_check/util.py
python/paddle_serving_server/env_check/util.py
+4
-1
python/paddle_serving_server/serve.py
python/paddle_serving_server/serve.py
+16
-8
未找到文件。
python/paddle_serving_server/env_check/util.py
浏览文件 @
7cdfbf5b
...
...
@@ -3,6 +3,7 @@ import argparse
import
base64
import
subprocess
import
numpy
as
np
import
sys
class
ServingTest
(
object
):
def
__init__
(
self
,
data_path
:
str
,
example_path
:
str
,
model_dir
:
str
,
client_dir
:
str
):
...
...
@@ -15,7 +16,9 @@ class ServingTest(object):
code_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
self
.
data_path
=
f
"
{
code_path
}
/
{
data_path
}
/"
self
.
example_path
=
f
"
{
code_path
}
/
{
example_path
}
/"
self
.
py_version
=
os
.
environ
.
get
(
"PYTHON_EXECUTABLE"
)
self
.
py_version
=
sys
.
executable
if
'PYTHON_EXECUTABLE'
in
os
.
environ
:
self
.
py_version
=
os
.
environ
.
get
(
"PYTHON_EXECUTABLE"
)
self
.
model_dir
=
model_dir
self
.
client_config
=
f
"
{
client_dir
}
/serving_client_conf.prototxt"
...
...
python/paddle_serving_server/serve.py
浏览文件 @
7cdfbf5b
...
...
@@ -473,31 +473,39 @@ def stop_serving(command: str, port: int=None):
return
True
class
Check_Env_Shell
(
cmd
.
Cmd
):
intro
=
'Welcome to the check env shell.Type help or ? to list commands.
\n
'
#prompt = '(check) '
intro
=
"Welcome to the check env shell.Type help to list commands.
\n
"
# ----- basic commands -----
def
do_help
(
self
,
arg
):
print
(
"
\n
Command list
\n
"
\
"check_all
\t
Check Environment of Paddle Inference, Pipeline Serving, C++ Serving
\n
"
\
"check_pipeline
\t
Check Environment of Pipeline Serving
\n
"
\
"check_cpp
\t
Check Environment of C++ Serving
\n
"
\
"check_inference
\t
Check Environment of Paddle Inference
\n
"
\
"debug
\t
Open pytest log to debug
\n
"
\
"exit
\t
Exit Check Env Shell
\n
"
)
def
do_check_all
(
self
,
arg
):
'Check Environment of Paddle Inference, Pipeline Serving, C++ Serving'
"Check Environment of Paddle Inference, Pipeline Serving, C++ Serving"
check_env
(
"all"
)
def
do_check_pipeline
(
self
,
arg
):
'Check Environment of Pipeline Serving'
"Check Environment of Pipeline Serving"
check_env
(
"pipeline"
)
def
do_check_cpp
(
self
,
arg
):
'Check Environment of C++ Serving'
"Check Environment of C++ Serving"
check_env
(
"cpp"
)
def
do_check_inference
(
self
,
arg
):
'Check Environment of Paddle Inference'
"Check Environment of Paddle Inference"
check_env
(
"inference"
)
def
do_debug
(
self
,
arg
):
'Open pytest log to debug'
"Open pytest log to debug"
check_env
(
"debug"
)
def
do_exit
(
self
,
arg
):
'Exit Check Env Shell'
"Exit Check Env Shell"
print
(
'Check Environment Shell Exit'
)
os
.
_exit
(
0
)
return
True
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录