Skip to content

Commit b1d8093

Browse files
authored
[src] Bug fix: LDA output dim should be LDA matrix dim, not input feature dim (#4003)
1 parent 53c4bd1 commit b1d8093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cudafeat/online-ivector-feature-cuda.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void IvectorExtractorFastCuda::GetIvector(const CuMatrixBase<BaseFloat> &feats,
4545
int lda_cols = cu_lda_.NumCols();
4646

4747
// normalized pipeline
48-
CuMatrix<BaseFloat> lda_feats_normalized(rows, cols, kUndefined);
48+
CuMatrix<BaseFloat> lda_feats_normalized(rows, lda_rows, kUndefined);
4949
{
5050
CudaOnlineCmvn cmvn(info_.cmvn_opts, naive_cmvn_state_);
5151
CuMatrix<BaseFloat> cmvn_feats(rows, cols, kUndefined);
@@ -81,7 +81,7 @@ void IvectorExtractorFastCuda::GetIvector(const CuMatrixBase<BaseFloat> &feats,
8181
}
8282

8383
// non-normalized pipeline
84-
CuMatrix<BaseFloat> lda_feats(feats.NumRows(), feats.NumCols(), kUndefined);
84+
CuMatrix<BaseFloat> lda_feats(rows, lda_rows, kUndefined);
8585
{
8686
CuMatrix<BaseFloat> spliced_feats;
8787

0 commit comments

Comments
 (0)