class_docstr: Solver for raw tensorflow model.
class_docstr_tok: ["Solver","for","raw","tensorflow","model","."]
docstr: Export a model to tensorflow SavedModel.
docstr_tok: ["Export","a","model","to","tensorflow","SavedModel","."]
code: def export_model(self):
      """Export a model to tensorflow SavedModel."""
      mode = utils.INFER
      graph = tf.Graph()
      with graph.as_default():
          infer_model = self.build_export_model()
          infer_model.sess = tf.Session(config=self.session_conf)
          infer_model.saver = tf.train.Saver()
  
          model_path = self.get_model_path(mode)
          infer_model.saver.restore(
              infer_model.sess, save_path=model_path
          )
  
          to_saved_model(
              self.config,
              infer_model.sess,
              infer_model.export_inputs,
              infer_model.output_dict,
          )
  
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 18 for calling the RawSolver obj's underlying member method code with example usage: obj.export_model() without return types