From f249cc6f3a257de77db2c0076e542857e21d54ca Mon Sep 17 00:00:00 2001 From: Dong Daxiang <35550832+guru4elephant@users.noreply.github.com> Date: Fri, 20 Mar 2020 23:07:30 +0800 Subject: [PATCH] Update DESIGN_DOC.md --- doc/DESIGN_DOC.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/doc/DESIGN_DOC.md b/doc/DESIGN_DOC.md index cb505dbc..9cdbe210 100644 --- a/doc/DESIGN_DOC.md +++ b/doc/DESIGN_DOC.md @@ -34,9 +34,38 @@ python -m paddle_serving_server.serve --model your_servable_model --thread 10 -- python -m paddle_serving_server_gpu.serve --model your_servable_model --thread 10 --port 9292 ``` 服务端的预测逻辑也可以通过Paddle Serving Server端的API进行人工定义,一个例子: +``` python +``` python +import paddle_serving_server as serving +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') + +op_seq_maker = serving.OpSeqMaker() +op_seq_maker.add_op(read_op) +op_seq_maker.add_op(dist_kv_op) +op_seq_maker.add_op(general_infer_op) +op_seq_maker.add_op(general_response_op) +``` + +当前Paddle Serving在Server端支持的主要Op请参考如下列表: +