Merge pull request #1429 from zoq/bigbatch_sgd_batch_bound_fix

BigBatchSGD batch size fix.
This commit is contained in:
Marcus Edel
2018-06-11 19:05:35 +02:00
committed by GitHub
@@ -143,7 +143,7 @@ double BigBatchSGD<UpdatePolicyType>::Optimize(
if (batchOffset <= 0)
batchOffset = 1;
if (batchSize + batchOffset >= numFunctions)
if ((currentFunction + batchSize + batchOffset) >= numFunctions)
break;
// Update the stochastic gradient estimation.