提交 32fa832b 编写于 作者: T tangwei12

code style

上级 5600b135
...@@ -42,8 +42,9 @@ class CheckpointNotifyOp : public framework::OperatorBase { ...@@ -42,8 +42,9 @@ class CheckpointNotifyOp : public framework::OperatorBase {
detail::RPCClient* rpc_client = detail::RPCClient* rpc_client =
detail::RPCClient::GetInstance<RPCCLIENT_T>(); detail::RPCClient::GetInstance<RPCCLIENT_T>();
for (size_t i = 0; i < epmap.size(); i++) { for (size_t i = 0; i < epmap.size(); i++) {
VLOG(3) << "sending " << dir <<" to " << epmap[i] << " to checkpoint notify ... "; VLOG(3) << "checkpoint notify sending " << dir << " to " << epmap[i];
auto serial_looku_table = string::Sprintf("%s/%s_%d", dir, lookup_table_name, i); auto serial_looku_table =
string::Sprintf("%s/%s_%d", dir, lookup_table_name, i);
rpc_client->AsyncCheckpointNotify(epmap[i], serial_looku_table); rpc_client->AsyncCheckpointNotify(epmap[i], serial_looku_table);
} }
rpc_client->Wait(); rpc_client->Wait();
...@@ -60,8 +61,8 @@ class CheckpointNotifyOpMaker : public framework::OpProtoAndCheckerMaker { ...@@ -60,8 +61,8 @@ class CheckpointNotifyOpMaker : public framework::OpProtoAndCheckerMaker {
.SetDefault({"127.0.0.1:6164"}); .SetDefault({"127.0.0.1:6164"});
AddAttr<std::string>( AddAttr<std::string>(
"dir", "(string, default '') indicate the folder checkpoint will use"); "dir", "(string, default '') indicate the folder checkpoint will use");
AddAttr<std::string>( AddAttr<std::string>("lookup_table",
"lookup_table", "(string, default '') the lookup table name"); "(string, default '') the lookup table name");
AddComment(R"DOC( AddComment(R"DOC(
Prefetch operator Prefetch operator
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册