def hard_reset(self):
    'Resets the iterator and ignore roll over data'
    if ((self.seq is not None) and self.shuffle):
        random.shuffle(self.seq)
    if (self.imgrec is not None):
        self.imgrec.reset()
    self.cur = 0
    self._allow_read = True
    self._cache_data = None
    self._cache_label = None
    self._cache_idx = None
Resets the iterator and ignore roll over data
def hard_reset(self):
    
    if ((self.seq is not None) and self.shuffle):
        random.shuffle(self.seq)
    if (self.imgrec is not None):
        self.imgrec.reset()
    self.cur = 0
    self._allow_read = True
    self._cache_data = None
    self._cache_label = None
    self._cache_idx = None