class_docstr: Solver in Keras way.
class_docstr_tok: ["Solver","in","Keras","way","."]
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."""
      inputs = self.build_inputs(utils.INFER)
      self.build()
      logits = self.model(inputs.input_x_dict)
      score = tf.nn.softmax(logits)
  
      self.session.run(tf.global_variables_initializer())
      self.session.run(tf.tables_initializer())
      self.session.run(inputs.iterator.initializer)
      weights_ckpt_dir = tf.train.latest_checkpoint(self.checkpoint_dir)
      self.model.load_weights(weights_ckpt_dir)
  
      output_dict = {"score": score}
      to_saved_model(
          self.config, self.session, inputs.input_x_dict, output_dict
      )
  
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 12 for calling the KerasSolver obj's underlying member method code with example usage: obj.export_model() without return types