diff options
author | Chris Dyer <cdyer@chriss-air.home> | 2013-11-30 18:03:30 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@chriss-air.home> | 2013-11-30 18:03:30 -0500 |
commit | e2dd5a3acd550447193f105b0ba18354f64e76a4 (patch) | |
tree | fdbbff18191be4ca3ea631b7af5e6e9bba99d962 /training/crf/mpi_compute_cllh.cc | |
parent | cff2ccabf1328108aeead1fef67131377dd02194 (diff) |
fix l1 implementation to ensure greater sparsity
Diffstat (limited to 'training/crf/mpi_compute_cllh.cc')
-rw-r--r-- | training/crf/mpi_compute_cllh.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/training/crf/mpi_compute_cllh.cc b/training/crf/mpi_compute_cllh.cc index 066389d0..7e38da3a 100644 --- a/training/crf/mpi_compute_cllh.cc +++ b/training/crf/mpi_compute_cllh.cc @@ -120,6 +120,7 @@ int main(int argc, char** argv) { reduce(world, observer.trg_words, total_words, std::plus<unsigned>(), 0); #else objective = observer.acc_obj; + total_words = observer.trg_words; #endif if (rank == 0) { |