Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Revert "move code out."
Browse files Browse the repository at this point in the history
This reverts commit c6af867.
  • Loading branch information
zheng-da committed Jul 20, 2018
1 parent 730b9d4 commit 6f5b965
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/imperative/imperative_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -965,12 +965,14 @@ inline void CreateEngineOpSeg(
auto& seg = (*opr_segs)[nid];
if (!valid) {
seg = EngineOprSeg{false, nid + 1, nullptr};
seg_execs.clear();
seg_start = nid + 1;
} else if (is_async) {
seg = EngineOprSeg{false, nid + 1};
seg.opr.reset(CreateEngineOp(default_ctx, seg_execs));
seg_execs.clear();
seg_start = nid + 1;
}
seg_execs.clear();
seg_start = nid + 1;
}
// The last segment
if (end_nid > seg_start) {
Expand Down

0 comments on commit 6f5b965

Please sign in to comment.