Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
a22a5ef0
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看板
未验证
提交
a22a5ef0
编写于
6月 10, 2020
作者:
M
MRXLT
提交者:
GitHub
6月 10, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #668 from barrierye/grpc-client
fix py3 compile error
上级
b206cefc
dfffee60
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
7 deletion
+9
-7
cmake/external/protobuf.cmake
cmake/external/protobuf.cmake
+1
-7
python/paddle_serving_client/__init__.py
python/paddle_serving_client/__init__.py
+2
-0
python/paddle_serving_server/__init__.py
python/paddle_serving_server/__init__.py
+3
-0
python/paddle_serving_server_gpu/__init__.py
python/paddle_serving_server_gpu/__init__.py
+3
-0
未找到文件。
cmake/external/protobuf.cmake
浏览文件 @
a22a5ef0
...
@@ -130,13 +130,7 @@ function(grpc_protobuf_generate_python SRCS)
...
@@ -130,13 +130,7 @@ function(grpc_protobuf_generate_python SRCS)
set
(
FIL_WE
"
${
FIL_DIR
}
/
${
FIL_WE
}
"
)
set
(
FIL_WE
"
${
FIL_DIR
}
/
${
FIL_WE
}
"
)
endif
()
endif
()
endif
()
endif
()
list
(
APPEND
${
SRCS
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
FIL_WE
}
_pb2.py"
)
add_custom_command
(
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
FIL_WE
}
_pb2.py"
COMMAND
${
PROTOBUF_PROTOC_EXECUTABLE
}
--python_out
${
CMAKE_CURRENT_BINARY_DIR
}
${
_protobuf_include_path
}
${
ABS_FIL
}
DEPENDS
${
ABS_FIL
}
${
PROTOBUF_PROTOC_EXECUTABLE
}
COMMENT
"Running Python protocol buffer compiler on
${
FIL
}
"
VERBATIM
)
list
(
APPEND
${
SRCS
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
FIL_WE
}
_pb2_grpc.py"
)
list
(
APPEND
${
SRCS
}
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
FIL_WE
}
_pb2_grpc.py"
)
add_custom_command
(
add_custom_command
(
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
FIL_WE
}
_pb2_grpc.py"
OUTPUT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
FIL_WE
}
_pb2_grpc.py"
...
...
python/paddle_serving_client/__init__.py
浏览文件 @
a22a5ef0
...
@@ -24,6 +24,8 @@ import sys
...
@@ -24,6 +24,8 @@ import sys
import
grpc
import
grpc
from
.proto
import
multi_lang_general_model_service_pb2
from
.proto
import
multi_lang_general_model_service_pb2
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)),
'proto'
))
from
.proto
import
multi_lang_general_model_service_pb2_grpc
from
.proto
import
multi_lang_general_model_service_pb2_grpc
int_type
=
0
int_type
=
0
...
...
python/paddle_serving_server/__init__.py
浏览文件 @
a22a5ef0
...
@@ -28,6 +28,9 @@ import fcntl
...
@@ -28,6 +28,9 @@ import fcntl
import
numpy
as
np
import
numpy
as
np
import
grpc
import
grpc
from
.proto
import
multi_lang_general_model_service_pb2
from
.proto
import
multi_lang_general_model_service_pb2
import
sys
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)),
'proto'
))
from
.proto
import
multi_lang_general_model_service_pb2_grpc
from
.proto
import
multi_lang_general_model_service_pb2_grpc
from
multiprocessing
import
Pool
,
Process
from
multiprocessing
import
Pool
,
Process
from
concurrent
import
futures
from
concurrent
import
futures
...
...
python/paddle_serving_server_gpu/__init__.py
浏览文件 @
a22a5ef0
...
@@ -30,6 +30,9 @@ import fcntl
...
@@ -30,6 +30,9 @@ import fcntl
import
numpy
as
np
import
numpy
as
np
import
grpc
import
grpc
from
.proto
import
multi_lang_general_model_service_pb2
from
.proto
import
multi_lang_general_model_service_pb2
import
sys
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
)),
'proto'
))
from
.proto
import
multi_lang_general_model_service_pb2_grpc
from
.proto
import
multi_lang_general_model_service_pb2_grpc
from
multiprocessing
import
Pool
,
Process
from
multiprocessing
import
Pool
,
Process
from
concurrent
import
futures
from
concurrent
import
futures
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录