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

Function LoadTensorsMap

tensorflow/lite/toco/tflite/export.cc:176–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void LoadTensorsMap(const Model& model, TensorsMap* tensors_map) {
177 // First find a list of unique array names.
178 std::set<string> names;
179 for (const auto& array_pair : model.GetArrayMap()) {
180 names.insert(array_pair.first);
181 }
182
183 // Now assign indices to them and fill in the map.
184 int index = 0;
185 for (const auto& name : names) {
186 (*tensors_map)[name] = index;
187 ++index;
188 }
189}
190
191void LoadOperatorsMap(
192 const Model& model, OperatorsMap* operators_map,

Callers 2

ExportFunction · 0.85
TEST_FFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by 1

TEST_FFunction · 0.68