mxnet
mxnet copied to clipboard
Fix for NDArrayIter documentation
In http://mxnet.io/api/python/io.html#mxnet.io.NDArrayIter, for last_batch_handle, it is written ‘roll_over’ is intended for training and can cause problems if used for prediction. However, I've examined the code and module.predict handles this issue. I think the corresponding sentence should be removed/detailed for Module API.
I've found the problem :) If an NDArrayIter instance is used for training, hard_reset() must be applied to NDArrayIter before prediction. predict() just calls reset() method which does not overcome the effect of roll_over.