aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/kernels/strided_slice.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-02-06 08:11:41 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-06 08:15:25 -0800
commit883559fbf5a86b1088bc9537adc5c8ad7cc25fe6 (patch)
tree819efecde3c2fa9e0f0e40138d592324ca481ca5 /tensorflow/contrib/lite/kernels/strided_slice.cc
parent4babfb446d3b904f413652df773ec87d2bd9cb0b (diff)
Remove redundant calls to realloc dynamic tensors.
PiperOrigin-RevId: 184682942
Diffstat (limited to 'tensorflow/contrib/lite/kernels/strided_slice.cc')
-rw-r--r--tensorflow/contrib/lite/kernels/strided_slice.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/kernels/strided_slice.cc b/tensorflow/contrib/lite/kernels/strided_slice.cc
index c4ffdf79d3..fb1e11e0ca 100644
--- a/tensorflow/contrib/lite/kernels/strided_slice.cc
+++ b/tensorflow/contrib/lite/kernels/strided_slice.cc
@@ -181,7 +181,6 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
if (IsDynamicTensor(op_context.output)) {
TF_LITE_ENSURE_OK(context, ResizeOutputTensor(context, &op_context));
- TfLiteTensorRealloc(op_context.output->bytes, op_context.output);
}
std::vector<int32_t> starts;