MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetInput

Function GetInput

tensorflow/lite/kernels/kernel_util.h:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32inline 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}
40inline TfLiteTensor* GetVariableInput(TfLiteContext* context, TfLiteNode* node,
41 int index) {
42 const int tensor_index = flatbuffers::EndianScalar(node->inputs->data[index]);

Callers 15

SimpleOpEvalFunction · 0.85
PrepareFunction · 0.85
EvalFunction · 0.85
PrepareFunction · 0.85
EvalFunction · 0.85
OpContextMethod · 0.85
PrepareFunction · 0.85
EvalFunction · 0.85
ResizeOutputFunction · 0.85
PrepareFunction · 0.85
EvalFunction · 0.85
PrepareFunction · 0.85

Calls

no outgoing calls

Tested by 8

SimpleOpEvalFunction · 0.68
PrepareFunction · 0.68
EvalFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
CompareMethod · 0.68