A next_iteration node for control flow.
| 647 | |
| 648 | // A next_iteration node for control flow. |
| 649 | Node* AddControlNext(NodeBuilder::NodeOut input, const string& device_name, |
| 650 | const GraphDefBuilder::Options& bopts) { |
| 651 | Node* res_node = ops::UnaryOp("NextIteration", std::move(input), bopts); |
| 652 | if (bopts.HaveError()) return nullptr; |
| 653 | res_node->set_assigned_device_name(device_name); |
| 654 | return res_node; |
| 655 | } |
| 656 | |
| 657 | Node* EmptyConst(const GraphDefBuilder::Options& options) { |
| 658 | if (options.HaveError()) return nullptr; |
no test coverage detected