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

Method AddSubgraphs

tensorflow/lite/interpreter.cc:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void Interpreter::AddSubgraphs(int subgraphs_to_add,
151 int* first_new_subgraph_index) {
152 const size_t base_index = subgraphs_.size();
153 if (first_new_subgraph_index) *first_new_subgraph_index = base_index;
154
155 subgraphs_.reserve(base_index + subgraphs_to_add);
156 for (int i = 0; i < subgraphs_to_add; ++i) {
157 Subgraph* subgraph = new Subgraph(error_reporter_, external_contexts_,
158 &subgraphs_, &resource_variables_);
159 subgraphs_.emplace_back(subgraph);
160 }
161}
162
163TfLiteStatus Interpreter::AddNodeWithParameters(
164 const std::vector<int>& inputs, const std::vector<int>& outputs,

Callers 4

operator()Method · 0.80
TEST_FFunction · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80

Calls 3

sizeMethod · 0.45
reserveMethod · 0.45
emplace_backMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
SetUpMethod · 0.64
SetUpMethod · 0.64