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

Function GetVariableInput

tensorflow/lite/kernels/kernel_util.h:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]);
43 if (tensor_index < 0) {
44 return nullptr;
45 }
46 TfLiteTensor* tensor = &context->tensors[tensor_index];
47 return (tensor->is_variable) ? tensor : nullptr;
48}
49inline TfLiteTensor* GetOutput(TfLiteContext* context, TfLiteNode* node,
50 int index) {
51 const int tensor_index = flatbuffers::EndianScalar(node->outputs->data[index]);

Callers 5

EvalFunction · 0.85
PrepareFunction · 0.85
EvalFunction · 0.85
PrepareFunction · 0.85
EvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected