(self, input_iterator, input_task, cur_sess, mode)
dataset_based generator used in keras.model.fit_generator()
        in future, it will be replaced by tf.keras.utils.Sequence
dataset_based generator used in keras.model.fit_generator()
        in future, it will be replaced by tf.keras.utils.Sequence
dataset_based generator used in keras . model . fit_generator () in future it will be replaced by tf . keras . utils . Sequence
def input_generator(self, input_iterator, input_task, cur_sess, mode):
    ''' dataset_based generator used in keras.model.fit_generator()
        in future, it will be replaced by tf.keras.utils.Sequence'''
    next_batch = input_iterator.get_next()
    generate_time = len(
        input_task) * self._num_epochs if mode == utils.TRAIN else len(
            input_task)
    for _ in range(generate_time):
      next_batch_data = cur_sess.run(next_batch)
      yield next_batch_data
def input_generator ( self , input_iterator , input_task , cur_sess , mode ) : next_batch = input_iterator . get_next ( ) generate_time = len ( input_task ) * self . _num_epochs if mode == utils . TRAIN else len ( input_task ) for _ in range ( generate_time ) : next_batch_data = cur_sess . run ( next_batch ) yield next_batch_data