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

Method EnsureMemoryAllocations

tensorflow/lite/core/subgraph.cc:1159–1167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1157}
1158
1159TfLiteStatus Subgraph::EnsureMemoryAllocations() {
1160 if (memory_planner_) {
1161 state_ = kStateUninvokable;
1162 TF_LITE_ENSURE_OK(&context_, memory_planner_->PlanAllocations());
1163 }
1164 TF_LITE_ENSURE_OK(&context_, AllocateTensors());
1165 TF_LITE_ENSURE_EQ(&context_, state_, kStateInvokable);
1166 return kTfLiteOk;
1167}
1168
1169TfLiteStatus Subgraph::ModifyGraphWithDelegate(TfLiteDelegate* delegate) {
1170 // Restore delegation state if applicable.

Callers 1

Calls 1

PlanAllocationsMethod · 0.80

Tested by

no test coverage detected