mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
relase VW instances back into object pool
This commit is contained in:
parent
c8cd5f7dd2
commit
6b73d1b8f4
@ -85,6 +85,9 @@ public:
|
||||
// TODO handle training somehow
|
||||
}
|
||||
|
||||
if (!m_train)
|
||||
m_predictorFactory->Release(static_cast<Discriminative::VWPredictor *>(classifier));
|
||||
|
||||
(*m_normalizer)(losses);
|
||||
|
||||
for(iterTransOpt = translationOptionList.begin(), iterLoss = losses.begin() ;
|
||||
|
Loading…
Reference in New Issue
Block a user