class_docstr: asr keras base solver
class_docstr_tok: ["asr","keras","base","solver"]
docstr: dataset_based generator used in keras.model.fit_generator()
  in future, it will be replaced by tf.keras.utils.Sequence
docstr_tok: ["dataset_based","generator","used","in","keras.model.fit_generator","(",")","in","future",",","it","will","be","replaced","by","tf.keras.utils.Sequence"]
code: 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
  
imports: from pathlib import Path
  from absl import logging
  import delta.compat
  from tensorflow.keras.utils import multi_gpu_model
  from tensorflow.keras.callbacks import EarlyStopping
  from tensorflow.keras.callbacks import TensorBoard
  from tensorflow.keras.callbacks import CSVLogger
  from tensorflow.keras.callbacks import ReduceLROnPlateau
  from delta import utils
  from delta.utils.solver.utils import solver_utils
  from delta.utils.solver.base_solver import Solver
  from delta.utils.solver.utils.callbacks import ParallelModelCheckpoint
  from delta.utils.register import registers
label_desc: Use image node_id 14 for calling the KerasBaseSolver obj's underlying member method code with example usage: obj.input_generator(input_iterator, input_task, cur_sess, mode) without return types