mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
compute error only for rank 0
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/mira-mtm5@3771 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
2f1b959302
commit
da95cb2560
@ -437,7 +437,7 @@ int main(int argc, char** argv) {
|
||||
lossMinusMargin_new += (losses[batchPosition][j] - margin);
|
||||
|
||||
// now collect translations of first epoch only
|
||||
if (epoch == 0) {
|
||||
if (rank == 0 && epoch == 0) {
|
||||
list_of_delta_h.push_back(featureDiff);
|
||||
list_of_losses.push_back(losses[batchPosition][j]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user