提交 4a1ce124 编写于 作者: B barrierye

update code

上级 c423873c
......@@ -76,8 +76,9 @@ int GeneralResponseOp::inference() {
Response *res = mutable_data<Response>();
// to let the client know which server the current response comes from
VLOG(2) << "getpid: " << getpid();
res->set_server_pid(static_cast<int>(getpid()));
int server_pid = static_cast<int>(getpid());
VLOG(2) << "getpid: " << server_pid;
res->set_server_pid(server_pid);
for (int i = 0; i < batch_size; ++i) {
FetchInst *fetch_inst = res->add_insts();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册