Go to the source code of this file.
Functions | |
void | TestSgmm2Init (const AmSgmm2 &sgmm) |
void | TestSgmm2IO (const AmSgmm2 &sgmm) |
void | TestSgmm2Substates (const AmSgmm2 &sgmm) |
void | TestSgmm2IncreaseDim (const AmSgmm2 &sgmm) |
void | TestSgmm2PreXform (const AmSgmm2 &sgmm) |
void | UnitTestSgmm2 () |
int | main () |
int main | ( | ) |
void TestSgmm2IncreaseDim | ( | const AmSgmm2 & | sgmm | ) |
Definition at line 192 of file am-sgmm2-test.cc.
References kaldi::AssertEqual(), kaldi::ComputeFeatureNormalizingTransform(), AmSgmm2::ComputePerFrameVars(), rnnlm::d, AmSgmm2::FeatureDim(), Sgmm2GselectConfig::full_gmm_nbest, AmSgmm2::full_ubm(), AmSgmm2::GaussianSelection(), AmSgmm2::LogLikelihood(), AmSgmm2::NumGauss(), AmSgmm2::NumGroups(), AmSgmm2::NumPdfs(), AmSgmm2::PhoneSpaceDim(), and kaldi::RandGauss().
Referenced by UnitTestSgmm2().
void TestSgmm2Init | ( | const AmSgmm2 & | sgmm | ) |
Definition at line 33 of file am-sgmm2-test.cc.
References kaldi::AssertEqual(), AmSgmm2::ComputeNormalizers(), AmSgmm2::ComputePerFrameVars(), AmSgmm2::ComputeWeights(), AmSgmm2::CopyFromSgmm2(), rnnlm::d, AmSgmm2::FeatureDim(), Sgmm2GselectConfig::full_gmm_nbest, AmSgmm2::full_ubm(), AmSgmm2::GaussianSelection(), rnnlm::i, AmSgmm2::InitializeFromFullGmm(), AmSgmm2::LogLikelihood(), AmSgmm2::NumGauss(), AmSgmm2::NumGroups(), AmSgmm2::NumPdfs(), AmSgmm2::Pdf2Group(), AmSgmm2::PhoneSpaceDim(), kaldi::RandGauss(), Sgmm2PerFrameDerivedVars::Resize(), and AmSgmm2::SpkSpaceDim().
Referenced by UnitTestSgmm2().
void TestSgmm2IO | ( | const AmSgmm2 & | sgmm | ) |
Definition at line 96 of file am-sgmm2-test.cc.
References kaldi::AssertEqual(), AmSgmm2::Check(), AmSgmm2::ComputePerFrameVars(), rnnlm::d, AmSgmm2::FeatureDim(), Sgmm2GselectConfig::full_gmm_nbest, AmSgmm2::GaussianSelection(), kaldi::kSgmmWriteAll, AmSgmm2::LogLikelihood(), AmSgmm2::NumGauss(), AmSgmm2::NumGroups(), AmSgmm2::NumPdfs(), AmSgmm2::PhoneSpaceDim(), kaldi::RandGauss(), AmSgmm2::Read(), Sgmm2PerFrameDerivedVars::Resize(), Input::Stream(), and AmSgmm2::Write().
Referenced by UnitTestSgmm2().
void TestSgmm2PreXform | ( | const AmSgmm2 & | sgmm | ) |
Definition at line 240 of file am-sgmm2-test.cc.
References MatrixBase< Real >::AddMatMat(), AmSgmm2::ComputeFmllrPreXform(), VectorBase< Real >::CopyColFromMat(), MatrixBase< Real >::IsUnit(), KALDI_ASSERT, kaldi::kNoTrans, kaldi::kSetZero, AmSgmm2::NumPdfs(), MatrixBase< Real >::NumRows(), and VectorBase< Real >::Set().
Referenced by UnitTestSgmm2().
void TestSgmm2Substates | ( | const AmSgmm2 & | sgmm | ) |
Definition at line 152 of file am-sgmm2-test.cc.
References kaldi::AssertEqual(), AmSgmm2::Check(), AmSgmm2::ComputeNormalizers(), AmSgmm2::ComputePerFrameVars(), AmSgmm2::ComputeWeights(), AmSgmm2::CopyFromSgmm2(), rnnlm::d, AmSgmm2::FeatureDim(), Sgmm2GselectConfig::full_gmm_nbest, AmSgmm2::GaussianSelection(), rnnlm::i, AmSgmm2::LogLikelihood(), AmSgmm2::NumGauss(), AmSgmm2::NumGroups(), AmSgmm2::NumPdfs(), kaldi::RandGauss(), kaldi::RandUniform(), Sgmm2SplitSubstatesConfig::split_substates, and AmSgmm2::SplitSubstates().
Referenced by UnitTestSgmm2().
void UnitTestSgmm2 | ( | ) |
Definition at line 261 of file am-sgmm2-test.cc.
References AmSgmm2::ComputeNormalizers(), AmSgmm2::InitializeFromFullGmm(), kaldi::unittest::InitRandFullGmm(), kaldi::RandInt(), TestSgmm2IncreaseDim(), TestSgmm2Init(), TestSgmm2IO(), TestSgmm2PreXform(), and TestSgmm2Substates().
Referenced by main().