| 954 | } // namespace |
| 955 | |
| 956 | void CheckNoMissingArray(const Model& model) { |
| 957 | for (const auto& op : model.operators) { |
| 958 | for (const auto& input : op->inputs) { |
| 959 | CHECK(model.HasArray(input) || model.optional_arrays.count(input)) |
| 960 | << "Input: " << input << " missing for op: " << op->outputs[0] << "."; |
| 961 | } |
| 962 | for (const auto& output : op->outputs) { |
| 963 | CHECK(model.HasArray(output)) << "Output: " << output << " missing."; |
| 964 | } |
| 965 | } |
| 966 | CheckNonExistentIOArrays(model); |
| 967 | } |
| 968 | |
| 969 | void FixNoMissingArray(Model* model) { |
| 970 | for (const auto& op : model->operators) { |
no test coverage detected