| 175 | } |
| 176 | |
| 177 | TfLiteStatus Interpreter::Invoke() { |
| 178 | TF_LITE_ENSURE_STATUS(primary_subgraph().Invoke()); |
| 179 | |
| 180 | if (!allow_buffer_handle_output_) { |
| 181 | for (int tensor_index : outputs()) { |
| 182 | TF_LITE_ENSURE_STATUS( |
| 183 | primary_subgraph().EnsureTensorDataIsReadable(tensor_index)); |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | return kTfLiteOk; |
| 188 | } |
| 189 | |
| 190 | TfLiteStatus Interpreter::AddTensors(int tensors_to_add, |
| 191 | int* first_new_tensor_index) { |