MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CheckNoMissingArray

Function CheckNoMissingArray

tensorflow/lite/toco/tooling_util.cc:956–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954} // namespace
955
956void 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
969void FixNoMissingArray(Model* model) {
970 for (const auto& op : model->operators) {

Callers 1

CheckInvariantsFunction · 0.85

Calls 3

CheckNonExistentIOArraysFunction · 0.85
HasArrayMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected