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

Function Prepare

tensorflow/lite/kernels/ceil.cc:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27constexpr int kOutputTensor = 0;
28
29TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
30 const TfLiteTensor* input = GetInput(context, node, kInputTensor);
31 TfLiteTensor* output = GetOutput(context, node, kOutputTensor);
32 TF_LITE_ENSURE_EQ(context, NumInputs(node), 1);
33 TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1);
34 TF_LITE_ENSURE_EQ(context, input->type, kTfLiteFloat32);
35 output->type = input->type;
36 TfLiteIntArray* output_size = TfLiteIntArrayCopy(input->dims);
37 return context->ResizeTensor(context, output, output_size);
38}
39
40TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
41 const TfLiteTensor* input = GetInput(context, node, kInputTensor);

Callers

nothing calls this directly

Calls 6

GetInputFunction · 0.85
GetOutputFunction · 0.85
NumInputsFunction · 0.85
TfLiteIntArrayCopyFunction · 0.85
ResizeTensorMethod · 0.80
NumOutputsFunction · 0.70

Tested by

no test coverage detected