From 0b27ea3f91d0ad2f2ed718839d308db3d1baf5ae Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 22 Jun 2012 08:48:37 -0400 Subject: single processor fix --- training/mpi_batch_optimize.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(), 0); reduce(world, cllh_observer.trg_words, test_total_words, std::plus(), 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 -- cgit v1.2.3