aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/util.h
diff options
context:
space:
mode:
authorGravatar Eugene Brevdo <ebrevdo@google.com>2018-03-12 13:35:03 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-12 13:39:26 -0700
commit2057bf784770c55ab56bdbe5b96c233afbed50ce (patch)
treecc4b65fad3a34e4670b5919eb94c7c6ce2b789f9 /tensorflow/contrib/lite/util.h
parent7a6af158e972bfef4b23bf6812b5895abcdc5aef (diff)
[TFLite] Don't require a std::vector for Interpreter::SetTensorParameters*.
PiperOrigin-RevId: 188770522
Diffstat (limited to 'tensorflow/contrib/lite/util.h')
-rw-r--r--tensorflow/contrib/lite/util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tensorflow/contrib/lite/util.h b/tensorflow/contrib/lite/util.h
index f505d82a11..a34db35823 100644
--- a/tensorflow/contrib/lite/util.h
+++ b/tensorflow/contrib/lite/util.h
@@ -29,9 +29,11 @@ namespace tflite {
// Converts a `std::vector` to a `TfLiteIntArray`.
TfLiteIntArray* ConvertVectorToTfLiteIntArray(const std::vector<int>& input);
-// Checks whether a `TfLiteIntArray` and `std::vector` have matching elements.
-bool EqualVectorAndTfLiteIntArray(const TfLiteIntArray* a,
- const std::vector<int>& b);
+TfLiteIntArray* ConvertArrayToTfLiteIntArray(const int rank, const int* dims);
+
+// Checks whether a `TfLiteIntArray` and an int array have matching elements.
+bool EqualArrayAndTfLiteIntArray(const TfLiteIntArray* a, const int b_size,
+ const int* b);
} // namespace tflite