diff --git a/doc/PIPELINE_SERVING.md b/doc/PIPELINE_SERVING.md index a4416d9258c6b78d3c0e696e66fe6dc7a482328d..98b359299d2b3a3b52daf94960fea473d0149f9d 100644 --- a/doc/PIPELINE_SERVING.md +++ b/doc/PIPELINE_SERVING.md @@ -581,4 +581,3 @@ Take imdb model ensemble as an example: ```shell curl -X POST -k http://localhost:8080/v1/example/echo -d '{"key": ["words"], "value": ["i am very sad | 0"]}' ``` - diff --git a/doc/PIPELINE_SERVING_CN.md b/doc/PIPELINE_SERVING_CN.md index 8a25114d5ea77a3e729bf615a88ba681a18ddbc7..44804e5d3e733b425ec0bb6712a67ee0889db565 100644 --- a/doc/PIPELINE_SERVING_CN.md +++ b/doc/PIPELINE_SERVING_CN.md @@ -578,4 +578,3 @@ go build .go ```shell curl -X POST -k http://localhost:8080/v1/example/echo -d '{"key": ["words"], "value": ["i am very sad | 0"]}' ``` - diff --git a/python/pipeline/dag.py b/python/pipeline/dag.py index 0e058dbeab8be4741268cadad0ab887f03a7d8a7..b7931e1ba91f13ff826c1b9cdb84db97df14fc71 100644 --- a/python/pipeline/dag.py +++ b/python/pipeline/dag.py @@ -299,13 +299,12 @@ class DAGExecutor(object): sys.stderr.write(profile_str) # add profile info into rpc_resp - profile_value = "" if resp_channeldata.client_need_profile: profile_set = resp_channeldata.profile_data_set profile_set.add(profile_str) profile_value = "".join(list(profile_set)) - rpc_resp.key.append(self._client_profile_key) - rpc_resp.value.append(profile_value) + rpc_resp.key.append(self._client_profile_key) + rpc_resp.value.append(profile_value) return rpc_resp