diff --git a/3rdparty/mshadow/mshadow/dot_engine-inl.h b/3rdparty/mshadow/mshadow/dot_engine-inl.h index 1a02eb9a39d8..d9abf298f93d 100644 --- a/3rdparty/mshadow/mshadow/dot_engine-inl.h +++ b/3rdparty/mshadow/mshadow/dot_engine-inl.h @@ -421,12 +421,9 @@ struct BLASEngine { CBLAS_TRANSPOSE p_transa[GROUP_SIZE] = {cblas_a_trans}; CBLAS_TRANSPOSE p_transb[GROUP_SIZE] = {cblas_b_trans}; - std::vector pp_A; - std::vector pp_B; - std::vector pp_C; - pp_A.reserve(batch_count); - pp_B.reserve(batch_count); - pp_C.reserve(batch_count); + std::vector pp_A(batch_count, nullptr); + std::vector pp_B(batch_count, nullptr); + std::vector pp_C(batch_count, nullptr); auto m_k = m * k; auto k_n = k * n;