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

Function LoadTensorsTable

tensorflow/lite/toco/tflite/import.cc:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29namespace details {
30void LoadTensorsTable(const ::tflite::Model& input_model,
31 TensorsTable* tensors_table) {
32 // TODO(aselle): add support to toco for multiple subgraphs.
33 auto tensors = (*input_model.subgraphs())[0]->tensors();
34 if (!tensors) return;
35 for (const auto* tensor : *tensors) {
36 tensors_table->push_back(tensor->name()->c_str());
37 }
38}
39
40void LoadOperatorsTable(const ::tflite::Model& input_model,
41 OperatorsTable* operators_table) {

Callers 2

ImportFunction · 0.85
TEST_FFunction · 0.85

Calls 4

tensorsMethod · 0.80
c_strMethod · 0.80
nameMethod · 0.65
push_backMethod · 0.45

Tested by 1

TEST_FFunction · 0.68