Global adaptation parameters. More...
#include <fmllr-sgmm2.h>
Public Member Functions | |
void | Init (const AmSgmm2 &sgmm, const Vector< BaseFloat > &state_occs) |
void | Write (std::ostream &out_stream, bool binary) const |
void | Read (std::istream &in_stream, bool binary) |
bool | IsEmpty () const |
bool | HasBasis () const |
Public Attributes | |
Matrix< BaseFloat > | pre_xform_ |
Pre-transform matrix. Dim is [D][D+1]. More... | |
Matrix< BaseFloat > | inv_xform_ |
Inverse of pre-transform. Dim is [D][D+1]. More... | |
Vector< BaseFloat > | mean_scatter_ |
Diagonal of mean-scatter matrix. Dim is [D]. More... | |
std::vector< Matrix< BaseFloat > > | fmllr_bases_ |
{W}_b. [b][d][d], dim is [B][D][D+1]. More... | |
Global adaptation parameters.
Definition at line 91 of file fmllr-sgmm2.h.
|
inline |
Definition at line 100 of file fmllr-sgmm2.h.
Referenced by FmllrSgmm2Accs::Update().
Definition at line 112 of file fmllr-sgmm2.h.
References AmSgmm2::ComputeFmllrPreXform().
|
inline |
Definition at line 96 of file fmllr-sgmm2.h.
Referenced by FmllrSgmm2Accs::Update().
void Read | ( | std::istream & | in_stream, |
bool | binary | ||
) |
Definition at line 122 of file fmllr-sgmm2.cc.
References kaldi::ExpectToken(), Sgmm2FmllrGlobalParams::fmllr_bases_, rnnlm::i, Sgmm2FmllrGlobalParams::inv_xform_, KALDI_ERR, Sgmm2FmllrGlobalParams::mean_scatter_, Sgmm2FmllrGlobalParams::pre_xform_, Matrix< Real >::Read(), kaldi::ReadBasicType(), and kaldi::ReadToken().
Referenced by main().
void Write | ( | std::ostream & | out_stream, |
bool | binary | ||
) | const |
Definition at line 103 of file fmllr-sgmm2.cc.
References Sgmm2FmllrGlobalParams::fmllr_bases_, rnnlm::i, Sgmm2FmllrGlobalParams::inv_xform_, Sgmm2FmllrGlobalParams::mean_scatter_, Sgmm2FmllrGlobalParams::pre_xform_, MatrixBase< Real >::Write(), kaldi::WriteBasicType(), and kaldi::WriteToken().
Referenced by main().
{W}_b. [b][d][d], dim is [B][D][D+1].
Definition at line 109 of file fmllr-sgmm2.h.
Referenced by kaldi::EstimateSgmm2FmllrSubspace(), Sgmm2FmllrGlobalParams::Read(), FmllrSgmm2Accs::Update(), and Sgmm2FmllrGlobalParams::Write().
Inverse of pre-transform. Dim is [D][D+1].
Definition at line 105 of file fmllr-sgmm2.h.
Referenced by kaldi::ApplyInvPreXformToChange(), kaldi::ApplyPreXformToGradient(), main(), Sgmm2FmllrGlobalParams::Read(), TestSgmm2FmllrAccsIO(), TestSgmm2FmllrSubspace(), and Sgmm2FmllrGlobalParams::Write().
Diagonal of mean-scatter matrix. Dim is [D].
Definition at line 107 of file fmllr-sgmm2.h.
Referenced by kaldi::ApplyHessianXformToGradient(), kaldi::ApplyInvHessianXformToChange(), main(), Sgmm2FmllrGlobalParams::Read(), TestSgmm2FmllrAccsIO(), TestSgmm2FmllrSubspace(), and Sgmm2FmllrGlobalParams::Write().
Pre-transform matrix. Dim is [D][D+1].
Definition at line 103 of file fmllr-sgmm2.h.
Referenced by kaldi::ApplyInvPreXformToChange(), kaldi::ApplyPreXformToGradient(), main(), Sgmm2FmllrGlobalParams::Read(), TestSgmm2FmllrAccsIO(), TestSgmm2FmllrSubspace(), and Sgmm2FmllrGlobalParams::Write().