aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/kernels/batch_to_space_nd.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/batch_to_space_nd.cc
parent4babfb446d3b904f413652df773ec87d2bd9cb0b (diff)
Remove redundant calls to realloc dynamic tensors.
PiperOrigin-RevId: 184682942
Diffstat (limited to 'tensorflow/contrib/lite/kernels/batch_to_space_nd.cc')
-rw-r--r--tensorflow/contrib/lite/kernels/batch_to_space_nd.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/kernels/batch_to_space_nd.cc b/tensorflow/contrib/lite/kernels/batch_to_space_nd.cc
index 889239f932..bc438f99c6 100644
--- a/tensorflow/contrib/lite/kernels/batch_to_space_nd.cc
+++ b/tensorflow/contrib/lite/kernels/batch_to_space_nd.cc
@@ -116,7 +116,6 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
// Resize the output tensor if the output tensor is dynamic.
if (IsDynamicTensor(op_context.output)) {
TF_LITE_ENSURE_OK(context, ResizeOutputTensor(context, &op_context));
- TfLiteTensorRealloc(op_context.output->bytes, op_context.output);
}
#define TF_LITE_BATCH_TO_SPACE_ND(type, scalar) \