mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Instability at the end of a dataIter?

Open jimxinbo opened this issue 10 years ago • 5 comments

I have a DataIter whose the epoch_size is 156 (ceil(n_sample/batch_size)=156). I reset the iterator every time at the beginning, but when I do

iter.reset() for dbatch in iter: ......

the iterator sometimes went though 156 batches but sometimes it went through 155 batches.

I build up the iterator following regular examples of imagerecorditer. I have a feeling this may relate to the "last_batch_handle" optional in Dataiter, but it should be "pad" by default and to my understand there should be no instability.

jimxinbo avatar Dec 22 '15 06:12 jimxinbo

which dataiter are you using?

piiswrong avatar Dec 22 '15 07:12 piiswrong

Imagerecorditer

jimxinbo avatar Dec 22 '15 16:12 jimxinbo

Interesting, this is not suppose to happen unless in round batch mode. Can you give an minimum reproducible example? So that the developers can take a look, alternatively, it would be great if you can help look into what is going on and make part of your wisdom to improve mxnet!

tqchen avatar Dec 23 '15 01:12 tqchen

Sure. Now that it is not a known issue, let me see what I can do first. I will send a minimum reproducible example if I cannot figure it out. Thx.

jimxinbo avatar Dec 23 '15 02:12 jimxinbo

closing for inactive status, feel free to reopen

tqchen avatar Apr 15 '16 01:04 tqchen