Gets the specified output port. Note that the special '-1' port_id can be used to access the controlled nodes (i.e. the nodes connected to node_name through an outgoing control dependency).
| 132 | // used to access the controlled nodes (i.e. the nodes connected to node_name |
| 133 | // through an outgoing control dependency). |
| 134 | OutputPort GetOutputPort(absl::string_view node_name, int port_id) const { |
| 135 | return OutputPort(GetNode(node_name), port_id); |
| 136 | } |
| 137 | |
| 138 | // Gets the input port(s) in the immediate fanout of an output port. |
| 139 | const absl::flat_hash_set<InputPort>& GetFanout( |