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

Function GetOutput

tensorflow/lite/kernels/kernel_util.h:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]);
52 if (tensor_index < 0) {
53 return nullptr;
54 }
55 return &context->tensors[tensor_index];
56}
57inline TfLiteTensor* GetTemporary(TfLiteContext* context, TfLiteNode* node,
58 int index) {
59 const int tensor_index = flatbuffers::EndianScalar(node->temporaries->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 15

SimpleOpEvalFunction · 0.68
PrepareFunction · 0.68
EvalFunction · 0.68
RunComposedOpMethod · 0.68
TEST_FFunction · 0.68
TYPED_TESTFunction · 0.68
ResultMethod · 0.68
TEST_FFunction · 0.68
TestSmall8BitMethod · 0.68
TestSmall32BitMethod · 0.68
TestSecondDim8BitMethod · 0.68
TEST_FFunction · 0.68