def create_data_iterators(self):
    'Creates data iterator(s) for the current phase.'
    del self.data_iterator
    self.data_iterator = iter(self.dataloader)
Creates data iterator(s) for the current phase.
def create_data_iterators(self):
    
    del self.data_iterator
    self.data_iterator = iter(self.dataloader)