diff --git a/paddle/fluid/operators/listen_and_serv_op.cc b/paddle/fluid/operators/listen_and_serv_op.cc index 477cb90efb66832efdfd67f2d948d19ac163678d..b0eec2eb443e2e9a42c5adad7bdff4d97fbbba19 100644 --- a/paddle/fluid/operators/listen_and_serv_op.cc +++ b/paddle/fluid/operators/listen_and_serv_op.cc @@ -247,7 +247,7 @@ void ListenAndServOp::RunImpl(const framework::Scope &scope, PADDLE_ENFORCE(!rpc_service_); std::string endpoint = Attr("endpoint"); - int checkpoint_point_block_id = Attr(kCheckpointBlockId); + int checkpoint_notify_id = Attr(kCheckpointBlockId); LOG(INFO) << "sync_mode:" << sync_mode << ", fan_in:" << fan_in << ", end_point:" << endpoint @@ -271,7 +271,7 @@ void ListenAndServOp::RunImpl(const framework::Scope &scope, std::shared_ptr ckpt_pre_context = nullptr; if (checkpoint_notify_id != -1) { - auto ctx = executor.Prepare(*program, checkpoint_point_block_id); + auto ctx = executor.Prepare(*program, checkpoint_notify_id); ckpt_pre_context = std::move(ctx); }