| 260 | } |
| 261 | |
| 262 | bool HasControlInputs(const NodeDef& node) { |
| 263 | const int num_inputs = node.input_size(); |
| 264 | if (num_inputs > 0 && IsControlInput(node.input(num_inputs - 1))) { |
| 265 | return true; |
| 266 | } |
| 267 | return false; |
| 268 | } |
| 269 | |
| 270 | bool HasRegularInputs(const NodeDef& node) { |
| 271 | const int num_inputs = node.input_size(); |