Sgmm2PerFrameDerivedVars Struct Reference

Holds the per-frame precomputed quantities x(t), x_{i}(t), z_{i}(t), and n_{i}(t) (cf. More...

#include <am-sgmm2.h>

Collaboration diagram for Sgmm2PerFrameDerivedVars:

Public Member Functions

void Resize (int32 ngauss, int32 feat_dim, int32 phn_dim)
 

Public Attributes

std::vector< int32gselect
 
Vector< BaseFloatxt
 x'(t), FMLLR-adapted, dim = [D], eq.(33) More...
 
Matrix< BaseFloatxti
 x_{i}(t) = x'(t) - o_i(s): dim = [I][D], eq.(34) More...
 
Matrix< BaseFloatzti
 z_{i}(t), dim = [I][S], eq.(35) More...
 
Vector< BaseFloatnti
 n_{i}(t), dim = [I], eq. More...
 

Detailed Description

Holds the per-frame precomputed quantities x(t), x_{i}(t), z_{i}(t), and n_{i}(t) (cf.

Eq. (33)-(36)) for the SGMM, as well as the cached Gaussian selection records.

Definition at line 142 of file am-sgmm2.h.

Member Function Documentation

◆ Resize()

void Resize ( int32  ngauss,
int32  feat_dim,
int32  phn_dim 
)
inline

Definition at line 151 of file am-sgmm2.h.

References VectorBase< Real >::Dim(), MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), Vector< Real >::Resize(), and Matrix< Real >::Resize().

Referenced by AmSgmm2::ComputePerFrameVars(), TestSgmm2AccsIO(), TestSgmm2FmllrAccsIO(), TestSgmm2FmllrSubspace(), TestSgmm2Init(), and TestSgmm2IO().

151  { // resizes but does
152  // not necessarily zero things.
153  if (xt.Dim() != feat_dim) xt.Resize(feat_dim);
154  if (xti.NumRows() != ngauss || xti.NumCols() != feat_dim)
155  xti.Resize(ngauss, feat_dim);
156  if (zti.NumRows() != ngauss || zti.NumCols() != phn_dim)
157  zti.Resize(ngauss, phn_dim);
158  if (nti.Dim() != ngauss)
159  nti.Resize(ngauss);
160  }
Vector< BaseFloat > xt
x&#39;(t), FMLLR-adapted, dim = [D], eq.(33)
Definition: am-sgmm2.h:144
MatrixIndexT NumCols() const
Returns number of columns (or zero for empty matrix).
Definition: kaldi-matrix.h:67
Matrix< BaseFloat > zti
z_{i}(t), dim = [I][S], eq.(35)
Definition: am-sgmm2.h:146
Matrix< BaseFloat > xti
x_{i}(t) = x&#39;(t) - o_i(s): dim = [I][D], eq.(34)
Definition: am-sgmm2.h:145
Vector< BaseFloat > nti
n_{i}(t), dim = [I], eq.
Definition: am-sgmm2.h:147
MatrixIndexT NumRows() const
Returns number of rows (or zero for empty matrix).
Definition: kaldi-matrix.h:64
void Resize(const MatrixIndexT r, const MatrixIndexT c, MatrixResizeType resize_type=kSetZero, MatrixStrideType stride_type=kDefaultStride)
Sets matrix to a specified size (zero is OK as long as both r and c are zero).

Member Data Documentation

◆ gselect

◆ nti

n_{i}(t), dim = [I], eq.

(36) in CSL paper, but [SSGMM] with extra term log b_i^{(s)}, see eq. (24) of techreport.

Definition at line 147 of file am-sgmm2.h.

Referenced by AmSgmm2::ComponentLogLikes(), and AmSgmm2::ComputePerFrameVars().

◆ xt

x'(t), FMLLR-adapted, dim = [D], eq.(33)

Definition at line 144 of file am-sgmm2.h.

Referenced by MleAmSgmm2Accs::AccumulateFromPosteriors(), MleSgmm2SpeakerAccs::AccumulateFromPosteriors(), and AmSgmm2::ComputePerFrameVars().

◆ xti

x_{i}(t) = x'(t) - o_i(s): dim = [I][D], eq.(34)

Definition at line 145 of file am-sgmm2.h.

Referenced by MleAmSgmm2Accs::AccumulateFromPosteriors(), and AmSgmm2::ComputePerFrameVars().

◆ zti

z_{i}(t), dim = [I][S], eq.(35)

Definition at line 146 of file am-sgmm2.h.

Referenced by MleAmSgmm2Accs::AccumulateFromPosteriors(), AmSgmm2::ComponentLogLikes(), and AmSgmm2::ComputePerFrameVars().


The documentation for this struct was generated from the following file: