From 859483640fac88c8114835642af229720c3cf6bf Mon Sep 17 00:00:00 2001 From: evahasler Date: Mon, 29 Nov 2010 19:09:34 +0000 Subject: [PATCH] fix batching git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/mira-mtm5@3747 1f5c12ca-751b-0410-a591-d2e778427230 --- mira/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mira/Main.cpp b/mira/Main.cpp index 9ffa93388..5a4beefe8 100644 --- a/mira/Main.cpp +++ b/mira/Main.cpp @@ -355,6 +355,7 @@ int main(int argc, char** argv) { // next input sentence ++sid; ++actualBatchSize; + ++shardPosition; } // Set loss for each sentence as BLEU(oracle) - BLEU(hypothesis) @@ -423,8 +424,7 @@ int main(int argc, char** argv) { } } - ++shardPosition; - ++iterations; + ++iterations; ++iterationsThisEpoch; // mix weights?