| 769 | } |
| 770 | |
| 771 | const Node* OutputFrame(const Node* node, |
| 772 | const std::vector<ControlFlowInfo>& cf_info) { |
| 773 | // An output is in the same frame as the node except for Exit nodes. |
| 774 | // The output of Exit is in the parent frame of the Exit node. |
| 775 | if (!node->IsExit()) { |
| 776 | return node; |
| 777 | } |
| 778 | return cf_info[node->id()].parent_frame; |
| 779 | } |
| 780 | |
| 781 | struct PriorityTopoSortNode { |
| 782 | PriorityTopoSortNode(const NodeDef* n, int64 st) : node(n), start_time(st) {} |
no test coverage detected