mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
Merge branch 'perf_moses2' of github.com:moses-smt/mosesdecoder into perf_moses2
This commit is contained in:
commit
68f6e0ada5
@ -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
|
||||
|
@ -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());
|
||||
|
||||
|
@ -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
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user