| 759 | } |
| 760 | |
| 761 | const Node* InputFrame(const Node* node, |
| 762 | const std::vector<ControlFlowInfo>& cf_info) { |
| 763 | // An input is in the same frame as the node except for Enter nodes. |
| 764 | // The input of Enter is in the parent frame of the Enter node. |
| 765 | if (!node->IsEnter()) { |
| 766 | return node; |
| 767 | } |
| 768 | return cf_info[node->id()].parent_frame; |
| 769 | } |
| 770 | |
| 771 | const Node* OutputFrame(const Node* node, |
| 772 | const std::vector<ControlFlowInfo>& cf_info) { |
no test coverage detected