A dummy const node for control flow.
| 669 | |
| 670 | // A dummy const node for control flow. |
| 671 | Node* AddControlConst(const string& device_name, |
| 672 | const GraphDefBuilder::Options& bopts) { |
| 673 | Node* res_node = EmptyConst(bopts); |
| 674 | if (bopts.HaveError()) return nullptr; |
| 675 | res_node->set_assigned_device_name(device_name); |
| 676 | return res_node; |
| 677 | } |
| 678 | |
| 679 | // A synthetic loop, made up of dummy nodes. It performs control-flow actions |
| 680 | // on behalf of a leader on a different device. |
no test coverage detected