Sgmm2LikelihoodCache caches SGMM likelihoods at two levels: the final pdf likelihoods, and the sub-state level likelihoods, which means that with the SCTM system we can avoid redundant computation. More...
#include <am-sgmm2.h>
Classes | |
struct | PdfCacheElement |
struct | SubstateCacheElement |
Public Member Functions | |
Sgmm2LikelihoodCache (int32 num_groups, int32 num_pdfs) | |
void | NextFrame () |
Public Attributes | |
std::vector< SubstateCacheElement > | substate_cache |
std::vector< PdfCacheElement > | pdf_cache |
int32 | t |
Sgmm2LikelihoodCache caches SGMM likelihoods at two levels: the final pdf likelihoods, and the sub-state level likelihoods, which means that with the SCTM system we can avoid redundant computation.
You need to call NextFrame() on the cache, between frames.
Definition at line 199 of file am-sgmm2.h.
|
inline |
Definition at line 202 of file am-sgmm2.h.
void NextFrame | ( | ) |
Definition at line 39 of file am-sgmm2.cc.
References rnnlm::i, Sgmm2LikelihoodCache::pdf_cache, Sgmm2LikelihoodCache::substate_cache, and Sgmm2LikelihoodCache::t.
Referenced by DecodableAmSgmm2::LogLikelihoodForPdf().
std::vector<PdfCacheElement> pdf_cache |
Definition at line 223 of file am-sgmm2.h.
Referenced by AmSgmm2::LogLikelihood(), and Sgmm2LikelihoodCache::NextFrame().
std::vector<SubstateCacheElement> substate_cache |
Definition at line 222 of file am-sgmm2.h.
Referenced by AmSgmm2::LogLikelihood(), and Sgmm2LikelihoodCache::NextFrame().
int32 t |
Definition at line 224 of file am-sgmm2.h.
Referenced by AmSgmm2::LogLikelihood(), Sgmm2LikelihoodCache::NextFrame(), Sgmm2GauPost::Read(), and Sgmm2GauPost::Write().