DecodableAmSgmm2Scaled Class Reference

#include <decodable-am-sgmm2.h>

Inheritance diagram for DecodableAmSgmm2Scaled:
Collaboration diagram for DecodableAmSgmm2Scaled:

Public Member Functions

 DecodableAmSgmm2Scaled (const AmSgmm2 &sgmm, const TransitionModel &tm, const Matrix< BaseFloat > &feats, const std::vector< std::vector< int32 > > &gselect, BaseFloat log_prune, BaseFloat scale, Sgmm2PerSpkDerivedVars *spk)
 
 DecodableAmSgmm2Scaled (const AmSgmm2 &sgmm, const TransitionModel &tm, const Matrix< BaseFloat > *feats, const std::vector< std::vector< int32 > > *gselect, Sgmm2PerSpkDerivedVars *spk, BaseFloat log_prune, BaseFloat scale)
 This version of the constructor takes ownership of the pointers "feats", "gselect" and "spk", and will delete them in its destructor. More...
 
virtual BaseFloat LogLikelihood (int32 frame, int32 tid)
 Returns the log likelihood, which will be negated in the decoder. More...
 
- Public Member Functions inherited from DecodableAmSgmm2
 DecodableAmSgmm2 (const AmSgmm2 &sgmm, const TransitionModel &tm, const Matrix< BaseFloat > &feats, const std::vector< std::vector< int32 > > &gselect, BaseFloat log_prune, Sgmm2PerSpkDerivedVars *spk)
 
 DecodableAmSgmm2 (const AmSgmm2 &sgmm, const TransitionModel &tm, const Matrix< BaseFloat > *feats, const std::vector< std::vector< int32 > > *gselect, Sgmm2PerSpkDerivedVars *spk, BaseFloat log_prune)
 This version of the constructor takes ownership of the pointers "feats", "gselect" and "spk", and will delete them when it is destroyed. More...
 
int32 NumFramesReady () const
 The call NumFramesReady() will return the number of frames currently available for this decodable object. More...
 
virtual int32 NumIndices () const
 Returns the number of states in the acoustic model (they will be indexed one-based, i.e. More...
 
virtual bool IsLastFrame (int32 frame) const
 Returns true if this is the last frame. More...
 
virtual ~DecodableAmSgmm2 ()
 
- Public Member Functions inherited from DecodableInterface
virtual ~DecodableInterface ()
 

Private Member Functions

 KALDI_DISALLOW_COPY_AND_ASSIGN (DecodableAmSgmm2Scaled)
 

Private Attributes

BaseFloat scale_
 

Additional Inherited Members

- Protected Member Functions inherited from DecodableAmSgmm2
virtual BaseFloat LogLikelihoodForPdf (int32 frame, int32 pdf_id)
 
- Protected Attributes inherited from DecodableAmSgmm2
const AmSgmm2sgmm_
 
Sgmm2PerSpkDerivedVarsspk_
 
const TransitionModeltrans_model_
 for tid to pdf mapping More...
 
const Matrix< BaseFloat > * feature_matrix_
 
const std::vector< std::vector< int32 > > * gselect_
 
BaseFloat log_prune_
 
int32 cur_frame_
 
Sgmm2PerFrameDerivedVars per_frame_vars_
 
Sgmm2LikelihoodCache sgmm_cache_
 
bool delete_vars_
 

Detailed Description

Definition at line 99 of file decodable-am-sgmm2.h.

Constructor & Destructor Documentation

◆ DecodableAmSgmm2Scaled() [1/2]

DecodableAmSgmm2Scaled ( const AmSgmm2 sgmm,
const TransitionModel tm,
const Matrix< BaseFloat > &  feats,
const std::vector< std::vector< int32 > > &  gselect,
BaseFloat  log_prune,
BaseFloat  scale,
Sgmm2PerSpkDerivedVars spk 
)
inline

Definition at line 101 of file decodable-am-sgmm2.h.

108  : DecodableAmSgmm2(sgmm, tm, feats, gselect, log_prune, spk),
109  scale_(scale) {}
DecodableAmSgmm2(const AmSgmm2 &sgmm, const TransitionModel &tm, const Matrix< BaseFloat > &feats, const std::vector< std::vector< int32 > > &gselect, BaseFloat log_prune, Sgmm2PerSpkDerivedVars *spk)

◆ DecodableAmSgmm2Scaled() [2/2]

DecodableAmSgmm2Scaled ( const AmSgmm2 sgmm,
const TransitionModel tm,
const Matrix< BaseFloat > *  feats,
const std::vector< std::vector< int32 > > *  gselect,
Sgmm2PerSpkDerivedVars spk,
BaseFloat  log_prune,
BaseFloat  scale 
)
inline

This version of the constructor takes ownership of the pointers "feats", "gselect" and "spk", and will delete them in its destructor.

Definition at line 114 of file decodable-am-sgmm2.h.

121  : DecodableAmSgmm2(sgmm, tm, feats, gselect, spk, log_prune),
122  scale_(scale) {}
DecodableAmSgmm2(const AmSgmm2 &sgmm, const TransitionModel &tm, const Matrix< BaseFloat > &feats, const std::vector< std::vector< int32 > > &gselect, BaseFloat log_prune, Sgmm2PerSpkDerivedVars *spk)

Member Function Documentation

◆ KALDI_DISALLOW_COPY_AND_ASSIGN()

KALDI_DISALLOW_COPY_AND_ASSIGN ( DecodableAmSgmm2Scaled  )
private

◆ LogLikelihood()

virtual BaseFloat LogLikelihood ( int32  frame,
int32  index 
)
inlinevirtual

Returns the log likelihood, which will be negated in the decoder.

The "frame" starts from zero. You should verify that NumFramesReady() > frame before calling this.

Reimplemented from DecodableAmSgmm2.

Definition at line 126 of file decodable-am-sgmm2.h.

References DecodableAmSgmm2::LogLikelihoodForPdf(), DecodableAmSgmm2::trans_model_, and TransitionModel::TransitionIdToPdfFast().

126  {
128  * scale_;
129  }
int32 TransitionIdToPdfFast(int32 trans_id) const
const TransitionModel & trans_model_
for tid to pdf mapping
virtual BaseFloat LogLikelihoodForPdf(int32 frame, int32 pdf_id)

Member Data Documentation

◆ scale_

BaseFloat scale_
private

Definition at line 131 of file decodable-am-sgmm2.h.


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