Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
d0b658af
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看板
提交
d0b658af
编写于
12月 06, 2021
作者:
H
HexToString
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix doc
上级
267a4b96
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
22 deletion
+22
-22
doc/C++_Serving/DAG_CN.md
doc/C++_Serving/DAG_CN.md
+11
-11
doc/C++_Serving/DAG_EN.md
doc/C++_Serving/DAG_EN.md
+11
-11
未找到文件。
doc/C++_Serving/DAG_CN.md
浏览文件 @
d0b658af
...
...
@@ -30,9 +30,9 @@ from paddle_serving_server import OpMaker
from
paddle_serving_server
import
OpSeqMaker
op_maker
=
serving
.
OpMaker
()
read_op
=
op_maker
.
create
(
'
general_reader
'
)
general_infer_op
=
op_maker
.
create
(
'
general_infer
'
)
general_response_op
=
op_maker
.
create
(
'
general_response
'
)
read_op
=
op_maker
.
create
(
'
GeneralReaderOp
'
)
general_infer_op
=
op_maker
.
create
(
'
GeneralInferOp
'
)
general_response_op
=
op_maker
.
create
(
'
GeneralResponseOp
'
)
op_seq_maker
=
serving
.
OpSeqMaker
()
op_seq_maker
.
add_op
(
read_op
)
...
...
@@ -65,13 +65,13 @@ from paddle_serving_server import OpGraphMaker
from
paddle_serving_server
import
Server
op_maker
=
OpMaker
()
read_op
=
op_maker
.
create
(
'
general_reader
'
)
read_op
=
op_maker
.
create
(
'
GeneralReaderOp
'
)
cnn_infer_op
=
op_maker
.
create
(
'
general_infer
'
,
engine_name
=
'cnn'
,
inputs
=
[
read_op
])
'
GeneralInferOp
'
,
engine_name
=
'cnn'
,
inputs
=
[
read_op
])
bow_infer_op
=
op_maker
.
create
(
'
general_infer
'
,
engine_name
=
'bow'
,
inputs
=
[
read_op
])
'
GeneralInferOp
'
,
engine_name
=
'bow'
,
inputs
=
[
read_op
])
response_op
=
op_maker
.
create
(
'
general_response
'
,
inputs
=
[
cnn_infer_op
,
bow_infer_op
])
'
GeneralResponseOp
'
,
inputs
=
[
cnn_infer_op
,
bow_infer_op
])
op_graph_maker
=
OpGraphMaker
()
op_graph_maker
.
add_op
(
read_op
)
...
...
@@ -92,10 +92,10 @@ from paddle_serving_server import OpMaker
from
paddle_serving_server
import
OpSeqMaker
op_maker
=
serving
.
OpMaker
()
read_op
=
op_maker
.
create
(
'
general_reader
'
)
dist_kv_op
=
op_maker
.
create
(
'
general_dist_kv
'
)
general_infer_op
=
op_maker
.
create
(
'
general_infer
'
)
general_response_op
=
op_maker
.
create
(
'
general_response
'
)
read_op
=
op_maker
.
create
(
'
GeneralReaderOp
'
)
dist_kv_op
=
op_maker
.
create
(
'
GeneralDistKVInferOp
'
)
general_infer_op
=
op_maker
.
create
(
'
GeneralInferOp
'
)
general_response_op
=
op_maker
.
create
(
'
GeneralResponseOp
'
)
op_seq_maker
=
serving
.
OpSeqMaker
()
op_seq_maker
.
add_op
(
read_op
)
...
...
doc/C++_Serving/DAG_EN.md
浏览文件 @
d0b658af
...
...
@@ -29,9 +29,9 @@ from paddle_serving_server import OpMaker
from
paddle_serving_server
import
OpSeqMaker
op_maker
=
serving
.
OpMaker
()
read_op
=
op_maker
.
create
(
'
general_reader
'
)
general_infer_op
=
op_maker
.
create
(
'
general_infer
'
)
general_response_op
=
op_maker
.
create
(
'
general_response
'
)
read_op
=
op_maker
.
create
(
'
GeneralReaderOp
'
)
general_infer_op
=
op_maker
.
create
(
'
GeneralInferOp
'
)
general_response_op
=
op_maker
.
create
(
'
GeneralResponseOp
'
)
op_seq_maker
=
serving
.
OpSeqMaker
()
op_seq_maker
.
add_op
(
read_op
)
...
...
@@ -63,13 +63,13 @@ from paddle_serving_server import OpGraphMaker
from paddle_serving_server import Server
op_maker = OpMaker()
read_op = op_maker.create('
general_reader
')
read_op = op_maker.create('
GeneralReaderOp
')
cnn_infer_op = op_maker.create(
'
general_infer
', engine_name='cnn', inputs=[read_op])
'
GeneralInferOp
', engine_name='cnn', inputs=[read_op])
bow_infer_op = op_maker.create(
'
general_infer
', engine_name='bow', inputs=[read_op])
'
GeneralInferOp
', engine_name='bow', inputs=[read_op])
response_op = op_maker.create(
'
general_response
', inputs=[cnn_infer_op, bow_infer_op])
'
GeneralResponseOp
', inputs=[cnn_infer_op, bow_infer_op])
op_graph_maker = OpGraphMaker()
op_graph_maker.add_op(read_op)
...
...
@@ -90,10 +90,10 @@ from paddle_serving_server import OpMaker
from paddle_serving_server import OpSeqMaker
op_maker = serving.OpMaker()
read_op = op_maker.create('
general_reader
')
dist_kv_op = op_maker.create('
general_dist_kv
')
general_infer_op = op_maker.create('
general_infer
')
general_response_op = op_maker.create('
general_response
')
read_op = op_maker.create('
GeneralReaderOp
')
dist_kv_op = op_maker.create('
GeneralDistKVInferOp
')
general_infer_op = op_maker.create('
GeneralInferOp
')
general_response_op = op_maker.create('
GeneralResponseOp
')
op_seq_maker = serving.OpSeqMaker()
op_seq_maker.add_op(read_op)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录