| 279 | } |
| 280 | |
| 281 | TfLiteTensor* MicroInterpreter::output(size_t index) { |
| 282 | const flatbuffers::Vector<int32_t>* outputs = subgraph_->outputs(); |
| 283 | const size_t length = outputs->size(); |
| 284 | if ((index < 0) || (index >= outputs->size())) { |
| 285 | error_reporter_->Report("Output index %d out of range (length is %d)", |
| 286 | index, length); |
| 287 | return nullptr; |
| 288 | } |
| 289 | return &(context_.tensors[outputs->Get(index)]); |
| 290 | } |
| 291 | |
| 292 | TfLiteTensor* MicroInterpreter::tensor(size_t index) { |
| 293 | const size_t length = tensors_size(); |