You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/07/14 13:17:31 UTC

[GitHub] [incubator-mxnet] braindotai edited a comment on issue #15535: mxnet.io.NDArrayIter does not properly function when len(data) * 2 < batch_size and last_batch_handle='pad'

braindotai edited a comment on issue #15535: mxnet.io.NDArrayIter does not properly function when len(data) * 2 < batch_size and last_batch_handle='pad'
URL: https://github.com/apache/incubator-mxnet/issues/15535#issuecomment-511202059
 
 
   I was running your code, and it looks like `last_batch_handle` has nothing to do with the error. You'll get the same error whenever your `batch size > 2 * len(data)`. 
   ```python
   data = mx.nd.arange(5)
   
   dtIter = mx.io.NDArrayIter(data, batch_size=11)
   for i in dtIter:
       print (i.data)
   ```
   prints:
   `IndexError: Slicing stop 6 exceeds limit of 5`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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