summaryrefslogtreecommitdiff
path: root/training/mpi_batch_optimize.cc
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-08-03 07:46:54 -0400
committerKenneth Heafield <github@kheafield.com>2012-08-03 07:46:54 -0400
commitbe1ab0a8937f9c5668ea5e6c31b798e87672e55e (patch)
treea13aad60ab6cced213401bce6a38ac885ba171ba /training/mpi_batch_optimize.cc
parente5d6f4ae41009c26978ecd62668501af9762b0bc (diff)
parent9fe0219562e5db25171cce8776381600ff9a5649 (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'training/mpi_batch_optimize.cc')
-rw-r--r--training/mpi_batch_optimize.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/training/mpi_batch_optimize.cc b/training/mpi_batch_optimize.cc
index 0db062a7..6432f4a2 100644
--- a/training/mpi_batch_optimize.cc
+++ b/training/mpi_batch_optimize.cc
@@ -310,7 +310,8 @@ int main(int argc, char** argv) {
reduce(world, cllh_observer.acc_obj, test_objective, std::plus<double>(), 0);
reduce(world, cllh_observer.trg_words, test_total_words, std::plus<unsigned>(), 0);
#else
- test_objective = observer.acc_obj;
+ test_objective = cllh_observer.acc_obj;
+ test_total_words = cllh_observer.trg_words;
#endif
if (rank == 0) { // run optimizer only on rank=0 node