| 268 | } |
| 269 | |
| 270 | bool HasRegularInputs(const NodeDef& node) { |
| 271 | const int num_inputs = node.input_size(); |
| 272 | if (num_inputs > 0 && !IsControlInput(node.input(0))) { |
| 273 | return true; |
| 274 | } |
| 275 | return false; |
| 276 | } |
| 277 | |
| 278 | int NumNonControlInputs(const NodeDef& node) { |
| 279 | int num_inputs = node.input_size(); |