| 2112 | } |
| 2113 | |
| 2114 | void StripCaretFromArrayNames(Model* model) { |
| 2115 | for (auto& op : model->operators) { |
| 2116 | for (auto& input : op->inputs) { |
| 2117 | input = string(absl::StripPrefix(input, "^")); |
| 2118 | } |
| 2119 | for (auto& output : op->outputs) { |
| 2120 | output = string(absl::StripPrefix(output, "^")); |
| 2121 | } |
| 2122 | } |
| 2123 | for (auto& array : model->GetArrayMap()) { |
| 2124 | if (absl::StartsWith(array.first, "^")) { |
| 2125 | LOG(FATAL) << "What?"; |
| 2126 | } |
| 2127 | } |
| 2128 | } |
| 2129 | |
| 2130 | void StripZeroOutputIndexFromInputs(NodeDef* node) { |
| 2131 | for (auto& input : *node->mutable_input()) { |
no test coverage detected