Merge branch 'perf_moses2' of github.com:moses-smt/mosesdecoder into perf_moses2

This commit is contained in:
Hieu Hoang 2016-03-23 22:03:49 +00:00
commit 68f6e0ada5
4 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ class EstimatedScores : public Matrix<float>
public:
EstimatedScores(MemPool &pool, size_t size)
:Matrix(pool, size, size)
:Matrix<float>(pool, size, size)
{}
~EstimatedScores(); // not implemented

View File

@ -31,7 +31,7 @@ TargetPhraseImpl *TargetPhraseImpl::CreateFromString(MemPool &pool, const Phrase
TargetPhraseImpl::TargetPhraseImpl(MemPool &pool, const PhraseTable &pt, const System &system, size_t size)
:TargetPhrase(pool, pt, system)
,PhraseImplTemplate(pool, size)
,PhraseImplTemplate<Word>(pool, size)
{
m_scores = new (pool.Allocate<Scores>()) Scores(system, pool, system.featureFunctions.GetNumScores());

View File

@ -16,7 +16,7 @@ public:
static PhraseImpl *CreateFromString(MemPool &pool, FactorCollection &vocab, const System &system, const std::string &str);
PhraseImpl(MemPool &pool, size_t size)
:PhraseImplTemplate(pool, size)
:PhraseImplTemplate<Word>(pool, size)
{}
const Word& operator[](size_t pos) const

View File

@ -41,7 +41,7 @@ TargetPhraseImpl *TargetPhraseImpl::CreateFromString(MemPool &pool, const Phrase
TargetPhraseImpl::TargetPhraseImpl(MemPool &pool, const PhraseTable &pt, const System &system, size_t size)
:TargetPhrase(pool, pt, system)
,PhraseImplTemplate(pool, size)
,PhraseImplTemplate<SCFG::Word>(pool, size)
{
m_scores = new (pool.Allocate<Scores>()) Scores(system, pool, system.featureFunctions.GetNumScores());