mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Fix for NDArrayIter documentation

Open mcxkarakoc opened this issue 9 years ago • 1 comments

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.

mcxkarakoc avatar Apr 05 '17 00:04 mcxkarakoc

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.

mcxkarakoc avatar Apr 09 '17 19:04 mcxkarakoc