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

Function ResizeTempSum

tensorflow/lite/kernels/reduce.cc:87–92  ·  view source on GitHub ↗

Resizes the temp tensor that stores temp sum of reduced elements.

Source from the content-addressed store, hash-verified

85
86// Resizes the temp tensor that stores temp sum of reduced elements.
87TfLiteStatus ResizeTempSum(TfLiteContext* context, OpContext* op_context,
88 TfLiteTensor* temp_sum) {
89 TfLiteIntArray* size = TfLiteIntArrayCreate(1);
90 size->data[0] = static_cast<int>(NumElements(op_context->output));
91 return context->ResizeTensor(context, temp_sum, size);
92}
93
94// Resizes output array based on the input size and resolved axis.
95TfLiteStatus ResizeOutputTensor(TfLiteContext* context, OpContext* op_context) {

Callers 3

PrepareMeanOrSumFunction · 0.85
EvalMeanFunction · 0.85
EvalSumFunction · 0.85

Calls 3

TfLiteIntArrayCreateFunction · 0.85
ResizeTensorMethod · 0.80
NumElementsFunction · 0.70

Tested by

no test coverage detected