0

After using the mx.io.ImageRecordIter() to load my training examples, is there a way to retrieve the total number of examples from the returned DataIter object ?

Many thanks,

HALMTL
  • 39
  • 3
  • Welcome to stackoverflow. Sharing your code and using proper formatting of code in your quesrion increases chance for answer. – Blackbam Dec 28 '16 at 16:06

1 Answers1

0

Length of the iterator is unknown until you iterate through it.

You could iterate through and count the number of examples but depending on the data set size, this could be a time consuming operation.

Indhu Bharathi
  • 1,437
  • 1
  • 13
  • 22