From 50638e96df5c3a674029c237daca5c2a76203dbc Mon Sep 17 00:00:00 2001 From: xiaogang Date: Mon, 30 Mar 2020 19:54:31 +0800 Subject: [PATCH] fix: fix sequence_pool bug (#3297) fix sequence_pool bug --- lite/kernels/arm/sequence_pool_compute.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lite/kernels/arm/sequence_pool_compute.cc b/lite/kernels/arm/sequence_pool_compute.cc index 8fcbb8cffe..53fa547703 100644 --- a/lite/kernels/arm/sequence_pool_compute.cc +++ b/lite/kernels/arm/sequence_pool_compute.cc @@ -59,7 +59,8 @@ void SequencePoolCompute::Run() { for (int i = 0; i <= batch_size; i++) { offset_new[i] = i; } - (output->mutable_lod())->push_back(offset_new); + output->mutable_lod()->clear(); + output->mutable_lod()->push_back(offset_new); } } // namespace arm -- GitLab