class_docstr: Solver in Keras way.
class_docstr_tok: ["Solver","in","Keras","way","."]
docstr: Build the inputs.
docstr_tok: ["Build","the","inputs","."]
code: def build_inputs(self, mode):
      """Build the inputs."""
      inputs = self.input_fn(mode)
  
      self.config["data"]["sequence_length"] = inputs.max_seq_len
      self.config["data"]["vocab_size"] = inputs.vocab_size
      self.config["data"][
          "{}_data_size".format(mode)
      ] = inputs.data_size
  
      return inputs
  
imports: import os
  import math
  import numpy
  import delta.compat
  from absl import logging
  from delta.utils.solver.base_solver import Solver
  from delta import utils
  from delta.utils.register import registers
  from delta.utils.solver.utils.solver_utils import get_checkpoint_dir
  from delta.utils.solver.utils.solver_utils import get_session_conf
  from delta.utils.solver.utils.solver_utils import to_saved_model
  from delta.utils.solver.utils.solver_utils import save_infer_res
label_desc: Use image node_id 5 for calling the KerasSolver obj's underlying member method code with example usage: obj.build_inputs(mode) and returns: inputs