relase VW instances back into object pool

This commit is contained in:
Ales Tamchyna 2015-01-07 17:27:42 +01:00
parent c8cd5f7dd2
commit 6b73d1b8f4

View File

@ -85,6 +85,9 @@ public:
// TODO handle training somehow // TODO handle training somehow
} }
if (!m_train)
m_predictorFactory->Release(static_cast<Discriminative::VWPredictor *>(classifier));
(*m_normalizer)(losses); (*m_normalizer)(losses);
for(iterTransOpt = translationOptionList.begin(), iterLoss = losses.begin() ; for(iterTransOpt = translationOptionList.begin(), iterLoss = losses.begin() ;