diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-26 13:42:36 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-26 13:47:11 -0700 |
commit | 652ce1aaefdadd04a9905a0788ab26c6fff93658 (patch) | |
tree | 58a766a41069b3985de75ab092d3672d4d737a4d /tensorflow/contrib/lite/kernels/unpack.cc | |
parent | d600b1b55fa851648918fed7a67f61eefd554034 (diff) |
Kernel signature reworking, misc kernel improvements and migrations.
PiperOrigin-RevId: 214661332
Diffstat (limited to 'tensorflow/contrib/lite/kernels/unpack.cc')
-rw-r--r-- | tensorflow/contrib/lite/kernels/unpack.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tensorflow/contrib/lite/kernels/unpack.cc b/tensorflow/contrib/lite/kernels/unpack.cc index 9ff06f8331..a7d3a9bc76 100644 --- a/tensorflow/contrib/lite/kernels/unpack.cc +++ b/tensorflow/contrib/lite/kernels/unpack.cc @@ -88,10 +88,13 @@ TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { template <typename T> void UnpackImpl(TfLiteContext* context, TfLiteNode* node, const TfLiteTensor* input, int output_count, int axis) { + tflite::UnpackParams op_params; + op_params.axis = axis; + op_params.num_split = output_count; VectorOfTensors<T> all_outputs(*context, *node->outputs); - reference_ops::Unpack<T>(axis, GetTensorData<T>(input), GetTensorDims(input), - NumDimensions(input), output_count, - all_outputs.data(), **all_outputs.dims()); + reference_ops::Unpack<T>(op_params, GetTensorShape(input), + GetTensorData<T>(input), **all_outputs.shapes(), + all_outputs.data()); } TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { |