Remove TODO and insert helpful comment to ResizeInputTensor()
PiperOrigin-RevId: 312516012
Change-Id: I4d230a687c5b1b16c3ffb478e428b17e16a4bc00
diff --git a/tensorflow/lite/interpreter.h b/tensorflow/lite/interpreter.h
index b93fd76..5278bc8 100644
--- a/tensorflow/lite/interpreter.h
+++ b/tensorflow/lite/interpreter.h
@@ -322,10 +322,9 @@
/// Change the dimensionality of a given tensor. Note, this is only acceptable
/// for tensor indices that are inputs or variables.
- /// Returns status of failure or success.
- /// TODO(aselle): Consider implementing ArraySlice equivalent to make this
- /// more adept at accepting data without an extra copy. Use absl::ArraySlice
- /// if our partners determine that dependency is acceptable.
+ /// Returns status of failure or success. Note that this doesn't actually
+ /// resize any existing buffers. A call to AllocateTensors() is required to
+ /// change the tensor input buffer.
TfLiteStatus ResizeInputTensor(int tensor_index,
const std::vector<int>& dims);
@@ -334,7 +333,8 @@
// tensor indices that are inputs or variables. Only unknown dimensions can be
// resized with this function. Unknown dimensions are indicated as `-1` in the
// `dims_signature` attribute of a `TfLiteTensor`. Returns status of failure
- // or success.
+ // or success. Note that this doesn't actually resize any existing buffers.
+ /// A call to AllocateTensors() is required to change the tensor input buffer.
TfLiteStatus ResizeInputTensorStrict(int tensor_index,
const std::vector<int>& dims);