summaryrefslogtreecommitdiff
path: root/training/optimize.h
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-09-22 18:15:39 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-09-22 18:15:39 +0000
commit20f46ca7b434aa569007c4da8d11988bd299e05b (patch)
treedaa81a2b58bfb2141ec0e351b75678dc5773ea03 /training/optimize.h
parent0277e5da3aa444ced74af8085f3349f91d17e56f (diff)
mpi support for training
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@654 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'training/optimize.h')
-rw-r--r--training/optimize.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/training/optimize.h b/training/optimize.h
index e2620f93..07943b44 100644
--- a/training/optimize.h
+++ b/training/optimize.h
@@ -22,6 +22,7 @@ class BatchOptimizer {
const std::vector<double>& g,
std::vector<double>* x) {
assert(g.size() == x->size());
+ ++eval_;
OptimizeImpl(obj, g, x);
scitbx::lbfgs::traditional_convergence_test<double> converged(g.size());
has_converged_ = converged(&(*x)[0], &g[0]);