diff --git a/lite/kernels/arm/sequence_pool_compute.cc b/lite/kernels/arm/sequence_pool_compute.cc index 8fcbb8cffe72935e4df503c3c1748ddb68247fb7..53fa5477036757fa70135569129fee115eb52047 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