A dummy node for scheduling.
| 538 | |
| 539 | // A dummy node for scheduling. |
| 540 | NodeDef* AddControlTrigger(const PartitionOptions& opts, GraphDef* gdef, |
| 541 | const string& assigned_device_name, int64 epoch, |
| 542 | int64 starttime, Status* status) { |
| 543 | NodeDef* result = gdef->add_node(); |
| 544 | *status = NodeDefBuilder(opts.new_name(strings::StrCat("synch_", epoch)), |
| 545 | "ControlTrigger") |
| 546 | .Device(assigned_device_name) |
| 547 | .Attr("_start_time", starttime) |
| 548 | .Finalize(result, /*consume=*/true); |
| 549 | return result; |
| 550 | } |
| 551 | |
| 552 | // Optimize colocation for control flow nodes. For cond, we want the |
| 553 | // switch nodes to colocate with its data input. This is particularly |
no test coverage detected