| 75 | } |
| 76 | |
| 77 | bool HasControlFanin(const GraphView& graph_view, const NodeDef* node) { |
| 78 | const auto control_port = GraphView::InputPort(node, Graph::kControlSlot); |
| 79 | return !graph_view.GetFanin(control_port).empty(); |
| 80 | } |
| 81 | |
| 82 | bool HasControlFanout(const GraphView& graph_view, const NodeDef* node) { |
| 83 | const auto control_port = GraphView::OutputPort(node, Graph::kControlSlot); |
no test coverage detected