| 223 | } |
| 224 | |
| 225 | Operator* GetOpWithOutput(const Model& model, const string& array_name) { |
| 226 | auto it = FindOpWithOutput(model, array_name); |
| 227 | return it == model.operators.end() ? nullptr : it->get(); |
| 228 | } |
| 229 | |
| 230 | // GetFirstOpWithInput assumes that this finds the first op. |
| 231 | std::vector<std::unique_ptr<Operator>>::const_iterator FindOpWithInput( |
no test coverage detected