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

Function GetOutputShape

tensorflow/lite/kernels/reshape.cc:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109TfLiteIntArray* GetOutputShape(TfLiteContext* context, TfLiteNode* node) {
110 if (NumInputs(node) == 2 && ShapeIsVector(context, node)) {
111 return GetOutputShapeFromTensor(context, node);
112 } else {
113 return GetOutputShapeFromParam(context, node);
114 }
115}
116
117TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
118 TF_LITE_ENSURE(context, NumInputs(node) == 1 || NumInputs(node) == 2);

Callers 1

ResizeOutputFunction · 0.70

Calls 4

NumInputsFunction · 0.85
ShapeIsVectorFunction · 0.85
GetOutputShapeFromTensorFunction · 0.85
GetOutputShapeFromParamFunction · 0.85

Tested by

no test coverage detected