Gets the specified input port. Note that the special '-1' port_id can be used to access the controlling nodes (i.e. the nodes connected to node_name through an incoming control dependency).
| 125 | // used to access the controlling nodes (i.e. the nodes connected to node_name |
| 126 | // through an incoming control dependency). |
| 127 | InputPort GetInputPort(absl::string_view node_name, int port_id) const { |
| 128 | return InputPort(GetNode(node_name), port_id); |
| 129 | } |
| 130 | |
| 131 | // Gets the specified output port. Note that the special '-1' port_id can be |
| 132 | // used to access the controlled nodes (i.e. the nodes connected to node_name |