Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[src] Small fix in test code, avoid spurious failure #2978

Merged
merged 1 commit into from
Jan 9, 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
[src] Small fix in test code, avoid spurious failure
  • Loading branch information
danpovey committed Jan 9, 2019
commit ca773ec67bb13e8b79a84577e9202664619bebb3
2 changes: 1 addition & 1 deletion src/nnet3/nnet-compile-utils-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void UnitTestSplitLocationsBackward(bool verbose) {
num_locations : max_generated_submat_list_size;
submat_lists[i].reserve(num_locations);
for (int32 j = 0; j < num_locations; j++) {
if (j <= min_num_kaddrows)
if (j <= min_num_kaddrows && j < num_submat_indexes)
// since we need min_num_kaddrows in the split_lists we ensure that
// we add a pair with the same first element in all the submat_lists
submat_lists[i].push_back(std::make_pair(submat_indexes[j],
Expand Down