Waiting too long after each epoch

Hi players,

I wrote a dataiter for my dataset but found it costs a lot of time for waiting for the next batch.

Does anybody have the same problem?

Hi Richard,

Would you be able to include some sample code of your iterator?

Thank you!
Vishaal