| 280 | } |
| 281 | |
| 282 | TfLiteStatus 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 | |
| 290 | TfLiteStatus ArenaPlanner::CalculateAllocationOfInternalTensors( |
| 291 | int node_index) { |
nothing calls this directly
no test coverage detected