aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/arena_planner.cc
diff options
context:
space:
mode:
authorGravatar Yu-Cheng Ling <ycling@google.com>2018-02-16 19:02:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-16 19:09:48 -0800
commit02bbb131b78fb0924675809ed5b549e594a51ac1 (patch)
treecf1399679db777396cc6c841a465d15e6ca8e0e5 /tensorflow/contrib/lite/arena_planner.cc
parentbd9224f5a066be8ec591bb2ac79c8bd87a9a395b (diff)
Automated g4 rollback of changelist 186053793
PiperOrigin-RevId: 186075274
Diffstat (limited to 'tensorflow/contrib/lite/arena_planner.cc')
-rw-r--r--tensorflow/contrib/lite/arena_planner.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/tensorflow/contrib/lite/arena_planner.cc b/tensorflow/contrib/lite/arena_planner.cc
index 8e47e2375e..87b17c338e 100644
--- a/tensorflow/contrib/lite/arena_planner.cc
+++ b/tensorflow/contrib/lite/arena_planner.cc
@@ -128,11 +128,6 @@ TfLiteStatus ArenaPlanner::PlanAllocations() {
}
TfLiteStatus ArenaPlanner::ExecuteAllocations(int first_node, int last_node) {
- // Grow the size of `allocs_` if necessary. This allows allocating temporary
- // tensors in op's `prepare` function.
- TF_LITE_ENSURE(context_, graph_info_->num_tensors() >= allocs_.size());
- allocs_.resize(graph_info_->num_tensors());
-
TF_LITE_ENSURE_STATUS(CalculateAllocations(first_node, last_node));
TF_LITE_ENSURE_STATUS(Commit());