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

Function PackImpl

tensorflow/lite/kernels/pack.cc:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86template <typename T>
87TfLiteStatus PackImpl(TfLiteContext* context, TfLiteNode* node,
88 TfLiteTensor* output, int values_count, int axis) {
89 TF_LITE_ENSURE(context, axis >= 0);
90
91 VectorOfTensors<T> all_inputs(*context, *node->inputs);
92 tflite::PackParams op_params;
93 op_params.axis = axis;
94 op_params.inputs_count = values_count;
95
96 reference_ops::Pack<T>(op_params, all_inputs.shapes(), all_inputs.data(),
97 GetTensorShape(output), GetTensorData<T>(output));
98 return kTfLiteOk;
99}
100
101TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
102 const TfLitePackParams* data =

Callers

nothing calls this directly

Calls 3

GetTensorShapeFunction · 0.50
shapesMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected