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

Function ResizeTempAxis

tensorflow/lite/kernels/reduce.cc:79–84  ·  view source on GitHub ↗

Resizes the temp tensor that stores resolved axis.

Source from the content-addressed store, hash-verified

77
78// Resizes the temp tensor that stores resolved axis.
79TfLiteStatus ResizeTempAxis(TfLiteContext* context, OpContext* op_context,
80 TfLiteTensor* resolved_axis) {
81 TfLiteIntArray* axis_size = TfLiteIntArrayCreate(1);
82 axis_size->data[0] = static_cast<int>(NumElements(op_context->axis));
83 return context->ResizeTensor(context, resolved_axis, axis_size);
84}
85
86// Resizes the temp tensor that stores temp sum of reduced elements.
87TfLiteStatus ResizeTempSum(TfLiteContext* context, OpContext* op_context,

Callers 4

PrepareSimpleFunction · 0.85
EvalMeanFunction · 0.85
EvalLogicFunction · 0.85
EvalSumFunction · 0.85

Calls 3

TfLiteIntArrayCreateFunction · 0.85
ResizeTensorMethod · 0.80
NumElementsFunction · 0.70

Tested by

no test coverage detected