diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-06-22 08:48:37 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-06-22 08:48:37 -0400 |
commit | 0695d80013ef4994142d8a069424ea57e45a9d80 (patch) | |
tree | 3b6514d48c157c240ad3a162e2d71463ce2e448a | |
parent | 37bb4a4c537ea2f9bd916f3e031c759e61bf49f7 (diff) |
single processor fix
-rw-r--r-- | training/mpi_batch_optimize.cc | 3 |
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 |