class_docstr: Solver for raw tensorflow model.
class_docstr_tok: ["Solver","for","raw","tensorflow","model","."]
docstr: Get the path of the checkpoint of the model.
docstr_tok: ["Get","the","path","of","the","checkpoint","of","the","model","."]
code: def get_model_path(self, mode):
      """Get the path of the checkpoint of the model."""
      model_path = ""
      if "{}_model_path".format(mode) in self.config["solver"]["saver"]:
          model_path = self.config["solver"]["saver"][
              "{}_model_path".format(mode)
          ]
      if model_path == "":
          model_path = self.get_generated_model_path()
      return model_path
  
imports: import re
  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_ckpt_state
  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 run_metrics
label_desc: Use image node_id 8 for calling the RawSolver obj's underlying member method code with example usage: obj.get_model_path(mode) and returns: model_path