class_docstr: Solver in Keras way.
class_docstr_tok: ["Solver","in","Keras","way","."]
docstr: Build the model.
docstr_tok: ["Build","the","model","."]
code: def build(self):
      """Build the model."""
  
      self.model = (
          self.model_fn()
      )  # pylint: disable=attribute-defined-outside-init
  
      loss_fn = self.get_loss_fn()
  
      optimizer = self.get_optimizer()
  
      self.model.compile(
          optimizer=optimizer, loss=loss_fn, metrics=self.metrics
      )
  
      self.model_compiled = True
      logging.info("Model is built.")
  
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 6 for calling the KerasSolver obj's underlying member method code with example usage: obj.build() without return types