Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

mshadow: fix vector access #17021

Merged
merged 1 commit into from
Dec 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions 3rdparty/mshadow/mshadow/dot_engine-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,9 @@ struct BLASEngine<cpu, float> {
CBLAS_TRANSPOSE p_transa[GROUP_SIZE] = {cblas_a_trans};
CBLAS_TRANSPOSE p_transb[GROUP_SIZE] = {cblas_b_trans};

std::vector<const float*> pp_A;
std::vector<const float*> pp_B;
std::vector<float*> pp_C;
pp_A.reserve(batch_count);
pp_B.reserve(batch_count);
pp_C.reserve(batch_count);
std::vector<const float*> pp_A(batch_count, nullptr);
std::vector<const float*> pp_B(batch_count, nullptr);
std::vector<float*> pp_C(batch_count, nullptr);

auto m_k = m * k;
auto k_n = k * n;
Expand Down