You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/10/04 05:14:40 UTC
[GitHub] eric-haibin-lin commented on issue #8062: CSVIter and LibSVMIter not returning correct number of batches per epoch
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:
users@infra.apache.org
With regards,
Apache Git Services