class_docstr: Solver in Keras way.
class_docstr_tok: ["Solver","in","Keras","way","."]
code: def __init__(self, config):
      super().__init__(config)
      self.model_compiled = False
      self.model_path = config["solver"]["saver"]["model_path"]
      self.checkpoint_dir = get_checkpoint_dir(self.config)
      self.session_conf = get_session_conf(self.config)
      self.session = tf.Session(config=self.session_conf)
      tf.keras.backend.set_session(self.session)
      self.metrics = self.get_metrics()
  
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 1 to create a new KerasSolver object from inherited base classes: Solver with example: obj = KerasSolver(config)