| 1145 | } |
| 1146 | |
| 1147 | TfLiteStatus Subgraph::RedoAllDelegates() { |
| 1148 | if (!delegates_undone_) return kTfLiteOk; |
| 1149 | |
| 1150 | delegates_undone_ = false; |
| 1151 | std::vector<TfLiteDelegate*> delegates_to_apply; |
| 1152 | delegates_applied_.swap(delegates_to_apply); |
| 1153 | for (auto* delegate : delegates_to_apply) { |
| 1154 | TF_LITE_ENSURE_STATUS(ModifyGraphWithDelegate(delegate)); |
| 1155 | } |
| 1156 | return kTfLiteOk; |
| 1157 | } |
| 1158 | |
| 1159 | TfLiteStatus Subgraph::EnsureMemoryAllocations() { |
| 1160 | if (memory_planner_) { |