| 30 | } |
| 31 | |
| 32 | inline const TfLiteTensor* GetInput(TfLiteContext* context, TfLiteNode* node, |
| 33 | int index) { |
| 34 | const int tensor_index = flatbuffers::EndianScalar(node->inputs->data[index]); |
| 35 | if (tensor_index < 0) { |
| 36 | return nullptr; |
| 37 | } |
| 38 | return &context->tensors[tensor_index]; |
| 39 | } |
| 40 | inline TfLiteTensor* GetVariableInput(TfLiteContext* context, TfLiteNode* node, |
| 41 | int index) { |
| 42 | const int tensor_index = flatbuffers::EndianScalar(node->inputs->data[index]); |
no outgoing calls