Skip to content

Commit

Permalink
resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FeixLiu committed Dec 2, 2021
1 parent ddc3f3e commit 642e8f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions paddle/fluid/distributed/fleet_executor/runtime_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ void RuntimeGraph::SplitProgramBasedFunctionality(const ProgramDesc& program) {
int32_t role_id = static_cast<int64_t>(role);
int64_t max_run_times = num_micro_batches;
int64_t max_slot_nums = start_up_steps;
// NOTE: use short path, each interceptor should cun for max_run_times
// if (IsLRSched(role_id) || IsOptimize(role_id)) {
// max_run_times = 1;
// max_slot_nums = 1;
// }
// NOTE: use short path, each interceptor should run for max_run_times
std::vector<OperatorBase*> task_ops{};
if (role_to_ops.find(role_id) != role_to_ops.end()) {
task_ops = role_to_ops.at(role_id);
Expand Down

0 comments on commit 642e8f0

Please sign in to comment.