Merge pull request #1429 from zoq/bigbatch_sgd_batch_bound_fix
BigBatchSGD batch size fix.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user