Skip to content

Commit

Permalink
[src] Fix to bug in ivector extraction causing assert failure, thx: s…
Browse files Browse the repository at this point in the history
…ray (#3364)
  • Loading branch information
danpovey committed Jun 4, 2019
1 parent 9c734a5 commit b276d70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/online2/online-ivector-feature.cc
Expand Up @@ -195,6 +195,9 @@ void OnlineIvectorFeature::UpdateStatsForFrames(
// Remove duplicates of frames.
MergePairVectorSumming(&frame_weights);

if (frame_weights.empty())
return;

int32 num_frames = static_cast<int32>(frame_weights.size());
int32 feat_dim = lda_normalized_->Dim();
Matrix<BaseFloat> feats(num_frames, feat_dim, kUndefined),
Expand Down

0 comments on commit b276d70

Please sign in to comment.