Permalink
Browse files

single processor fix

  • Loading branch information...
1 parent 899f78c commit 0b27ea3f91d0ad2f2ed718839d308db3d1baf5ae Chris Dyer committed Jun 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 0b27ea3

Please sign in to comment.