| 47 | return (tensor->is_variable) ? tensor : nullptr; |
| 48 | } |
| 49 | inline TfLiteTensor* GetOutput(TfLiteContext* context, TfLiteNode* node, |
| 50 | int index) { |
| 51 | const int tensor_index = flatbuffers::EndianScalar(node->outputs->data[index]); |
| 52 | if (tensor_index < 0) { |
| 53 | return nullptr; |
| 54 | } |
| 55 | return &context->tensors[tensor_index]; |
| 56 | } |
| 57 | inline TfLiteTensor* GetTemporary(TfLiteContext* context, TfLiteNode* node, |
| 58 | int index) { |
| 59 | const int tensor_index = flatbuffers::EndianScalar(node->temporaries->data[index]); |
no outgoing calls