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

Function StripCaretFromArrayNames

tensorflow/lite/toco/import_tensorflow.cc:2114–2128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2112}
2113
2114void 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
2130void StripZeroOutputIndexFromInputs(NodeDef* node) {
2131 for (auto& input : *node->mutable_input()) {

Callers 1

ImportTensorFlowGraphDefFunction · 0.85

Calls 1

StartsWithFunction · 0.85

Tested by

no test coverage detected