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:
evahasler 2010-12-13 18:10:17 +00:00
parent 2f1b959302
commit da95cb2560

View File

@ -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]);
}