Skip to content
Snippets Groups Projects
Commit 5125adb3 authored by Dan Povey's avatar Dan Povey
Browse files

Fix bug in gmm-transform-means, found by Yajie Miao.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@1120 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 897367e8
Branches
No related tags found
No related merge requests found
// gmmbin/gmm-transform-means.cc
// Copyright 2009-2011 Microsoft Corporation
// 2012 Johns Hopkins University (author: Daniel Povey)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
......@@ -86,7 +87,7 @@ int main(int argc, char *argv[]) {
SubMatrix<BaseFloat> means_part(means_ext, 0, means.NumRows(),
0, means.NumCols());
means_part.CopyFromMat(means); // copy old part...
new_means.AddMatMat(1.0, means, kNoTrans, mat, kTrans, 0.0);
new_means.AddMatMat(1.0, means_ext, kNoTrans, mat, kTrans, 0.0);
}
gmm.SetMeans(new_means);
gmm.ComputeGconsts();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment