diff --git a/tests/testutil.h b/tests/testutil.h index efb569c20..a0f33776d 100644 --- a/tests/testutil.h +++ b/tests/testutil.h @@ -209,7 +209,7 @@ int test_layer(int typeindex, const ncnn::ParamDict& pd, const ncnn::ModelBin& m std::vector c(top_blob_count); { - std::vector a4; + std::vector a4(a.size()); if (opt.use_packing_layout) { for (size_t i=0; i