eric-haibin-lin commented on issue #8062: CSVIter and LibSVMIter not returning 
correct number of batches per epoch
URL: 
https://github.com/apache/incubator-mxnet/issues/8062#issuecomment-334051905
 
 
   The number of batches will be correct if reset() is moved to the end of the 
epoch:
   ```
           for epoch in range(10):
               nbatch = 0
               for batch in iter(data_train):
                   nbatch += 1
               assert(nbatch == 100), nbatch
               data_train.reset()
   ```
   I've updated the documentation for this in #8111
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to