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

Method CalculateTensorDeallocation

tensorflow/lite/arena_planner.cc:282–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282TfLiteStatus ArenaPlanner::CalculateTensorDeallocation(int tensor_index) {
283 TfLiteTensor& tensor = *graph_info_->tensor(tensor_index);
284 if (tensor.allocation_type == kTfLiteArenaRw) {
285 TF_LITE_ENSURE_STATUS(arena_.Deallocate(context_, allocs_[tensor_index]));
286 }
287 return kTfLiteOk;
288}
289
290TfLiteStatus ArenaPlanner::CalculateAllocationOfInternalTensors(
291 int node_index) {

Callers

nothing calls this directly

Calls 2

tensorMethod · 0.45
DeallocateMethod · 0.45

Tested by

no test coverage detected