diff --git a/lite/kernels/host/multiclass_nms_compute.cc b/lite/kernels/host/multiclass_nms_compute.cc index 9f4c2fb6f53c17f97cb9a1aaeecd493713899cab..17c8cfd9fe0e40c59441b40d29f7803d5e8aa3fe 100644 --- a/lite/kernels/host/multiclass_nms_compute.cc +++ b/lite/kernels/host/multiclass_nms_compute.cc @@ -369,6 +369,7 @@ void MulticlassNmsCompute::Run() { } } else { outs->Resize({static_cast(num_kept), out_dim}); + (void)outs->mutable_data(); int offset = 0; int* oindices = nullptr; for (int i = 0; i < n; ++i) {