Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
7288a851
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看板
提交
7288a851
编写于
11月 09, 2021
作者:
F
felixhjh
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v0.7.0' of
https://github.com/felixhjh/Serving
into v0.7.0
上级
28fdf1eb
ea74101b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
74 addition
and
3 deletion
+74
-3
CMakeLists.txt
CMakeLists.txt
+1
-0
README.md
README.md
+9
-0
README_CN.md
README_CN.md
+10
-0
cmake/external/utf8proc.cmake
cmake/external/utf8proc.cmake
+51
-0
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+1
-1
core/general-server/CMakeLists.txt
core/general-server/CMakeLists.txt
+2
-2
未找到文件。
CMakeLists.txt
浏览文件 @
7288a851
...
...
@@ -104,6 +104,7 @@ if (SERVER OR CLIENT)
include
(
external/brpc
)
include
(
external/gflags
)
include
(
external/glog
)
include
(
external/utf8proc
)
if
(
WITH_PYTHON
)
include
(
external/pybind11
)
include
(
external/python
)
...
...
README.md
浏览文件 @
7288a851
...
...
@@ -267,6 +267,15 @@ output
{'err_no': 0, 'err_msg': '', 'key': ['res'], 'value': ["['土地整治与土壤修复研究中心', '华南农业大学1素图']"]}
```
<h3
align=
"center"
>
Stop Serving/Pipeline service
</h3>
**Method one**
:Ctrl+C to quit
**Method Two**
:In the path where starting the Serving/Pipeline service or the path which environment variable SERVING_HOME set (the file named ProcessInfo.json exists in this path)
```
python3 -m paddle_serving_server.serve stop
```
<h2
align=
"center"
>
Document
</h2>
...
...
README_CN.md
浏览文件 @
7288a851
...
...
@@ -269,6 +269,16 @@ python3 pipeline_rpc_client.py
{'err_no': 0, 'err_msg': '', 'key': ['res'], 'value': ["['土地整治与土壤修复研究中心', '华南农业大学1素图']"]}
```
<h3
align=
"center"
>
关闭Serving/Pipeline服务
</h3>
**方式一**
:Ctrl+C关停服务
**方式二**
:在启动Serving/Pipeline服务路径或者环境变量SERVING_HOME路径下(该路径下存在文件ProcessInfo.json)
```
python3 -m paddle_serving_server.serve stop
```
<h2
align=
"center"
>
文档
</h2>
### 新手教程
...
...
cmake/external/utf8proc.cmake
0 → 100644
浏览文件 @
7288a851
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
INCLUDE
(
ExternalProject
)
SET
(
GIT_URL https://github.com
)
SET
(
UTF8PROC_PREFIX_DIR
${
THIRD_PARTY_PATH
}
/utf8proc
)
SET
(
UTF8PROC_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/utf8proc
)
# As we add extra features for utf8proc, we use the non-official repo
SET
(
UTF8PROC_REPOSITORY
${
GIT_URL
}
/JuliaStrings/utf8proc.git
)
SET
(
UTF8PROC_TAG v2.6.1
)
IF
(
WIN32
)
SET
(
UTF8PROC_LIBRARIES
"
${
UTF8PROC_INSTALL_DIR
}
/lib/utf8proc_static.lib"
)
add_definitions
(
-DUTF8PROC_STATIC
)
ELSE
(
WIN32
)
SET
(
UTF8PROC_LIBRARIES
"
${
UTF8PROC_INSTALL_DIR
}
/lib/libutf8proc.a"
)
ENDIF
(
WIN32
)
INCLUDE_DIRECTORIES
(
${
UTF8PROC_INSTALL_DIR
}
/include
)
ExternalProject_Add
(
extern_utf8proc
${
EXTERNAL_PROJECT_LOG_ARGS
}
${
SHALLOW_CLONE
}
GIT_REPOSITORY
${
UTF8PROC_REPOSITORY
}
GIT_TAG
${
UTF8PROC_TAG
}
PREFIX
${
UTF8PROC_PREFIX_DIR
}
UPDATE_COMMAND
""
CMAKE_ARGS -DCMAKE_C_FLAGS=
${
CMAKE_C_FLAGS
}
-DBUILD_SHARED=ON
-DBUILD_STATIC=ON
-DCMAKE_CXX_FLAGS=
${
CMAKE_CXX_FLAGS
}
-DCMAKE_INSTALL_PREFIX:PATH=
${
UTF8PROC_INSTALL_DIR
}
-DCMAKE_BUILD_TYPE:STRING=
${
CMAKE_BUILD_TYPE
}
BUILD_BYPRODUCTS
${
UTF8PROC_LIBRARIES
}
)
ADD_LIBRARY
(
utf8proc STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET utf8proc PROPERTY IMPORTED_LOCATION
${
UTF8PROC_LIBRARIES
}
)
ADD_DEPENDENCIES
(
utf8proc extern_utf8proc
)
cmake/paddlepaddle.cmake
浏览文件 @
7288a851
...
...
@@ -30,7 +30,7 @@ message( "WITH_GPU = ${WITH_GPU}")
# Paddle Version should be one of:
# latest: latest develop build
# version number like 1.5.2
SET
(
PADDLE_VERSION
"2.2.0
-rc0
"
)
SET
(
PADDLE_VERSION
"2.2.0"
)
if
(
WITH_GPU
)
message
(
"CUDA:
${
CUDA_VERSION
}
, CUDNN_MAJOR_VERSION:
${
CUDNN_MAJOR_VERSION
}
"
)
# cuda 11.0 is not supported, 11.2 would be added.
...
...
core/general-server/CMakeLists.txt
浏览文件 @
7288a851
...
...
@@ -3,7 +3,7 @@ include(op/CMakeLists.txt)
include
(
proto/CMakeLists.txt
)
add_executable
(
serving
${
serving_srcs
}
)
add_dependencies
(
serving pdcodegen paddle_inference_engine pdserving paddle_inference cube-api utils
)
add_dependencies
(
serving pdcodegen paddle_inference_engine pdserving paddle_inference cube-api utils
utf8proc
)
if
(
WITH_GPU
)
add_dependencies
(
serving paddle_inference_engine
)
...
...
@@ -30,7 +30,7 @@ target_link_libraries(serving protobuf)
target_link_libraries
(
serving pdserving
)
target_link_libraries
(
serving cube-api
)
target_link_libraries
(
serving utils
)
target_link_libraries
(
serving utf8proc
)
if
(
WITH_GPU
)
target_link_libraries
(
serving
${
CUDA_LIBRARIES
}
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录