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

Function UnpackImpl

tensorflow/lite/kernels/unpack.cc:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81template <typename T>
82void UnpackImpl(TfLiteContext* context, TfLiteNode* node,
83 const TfLiteTensor* input, int output_count, int axis) {
84 tflite::UnpackParams op_params;
85 op_params.axis = axis;
86 op_params.num_split = output_count;
87 VectorOfTensors<T> all_outputs(*context, *node->outputs);
88 reference_ops::Unpack<T>(op_params, GetTensorShape(input),
89 GetTensorData<T>(input), **all_outputs.shapes(),
90 all_outputs.data());
91}
92
93TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
94 const TfLiteUnpackParams* data =

Callers

nothing calls this directly

Calls 3

GetTensorShapeFunction · 0.50
shapesMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected