class_docstr: Load graphs and restore variable values from a `SavedModel`.
docstr: Load ops and nodes from SavedModel MetaGraph into graph.
  
  Args:
    graph: tf.Graph object.
    tags: a set of string tags identifying a MetaGraphDef.
    import_scope: Optional `string` -- if specified, prepend this string
      followed by '/' to all loaded tensor names. This scope is applied to
      tensor instances loaded into the passed session, but it is *not* written
      through to the static `MetaGraphDef` protocol buffer that is returned.
    **saver_kwargs: keyword arguments to pass to tf.train.import_meta_graph.
  
  Returns:
    A tuple of
      * Saver defined by the MetaGraph, which can be used to restore the
        variable values.
      * List of `Operation`/`Tensor` objects returned from
        `tf.import_graph_def` (may be `None`).
docstr_tok: ["Load","ops","and","nodes","from","SavedModel","MetaGraph","into","graph",".","Args",":","graph",":","tf.Graph","object",".","tags",":","a","set","of","string","tags","identifying","a","MetaGraphDef",".","import_scope",":","Optional","`","string","`","--","if","specified",",","prepend","this","string","followed","by","'\/","'","to","all","loaded","tensor","names",".","This","scope","is","applied","to","tensor","instances","loaded","into","the","passed","session",",","but","it","is","*","not","*","written","through","to","the","static","`","MetaGraphDef","`","protocol","buffer","that","is","returned",".","*","*","saver_kwargs",":","keyword","arguments","to","pass","to","tf.train.import_meta_graph",".","Returns",":","A","tuple","of","*","Saver","defined","by","the","MetaGraph",",","which","can","be","used","to","restore","the","variable","values",".","*","List","of","`","Operation","`","\/","`","Tensor","`","objects","returned","from","`","tf.import_graph_def","`","(","may","be","`","None","`",")","."]
code: def load_graph(self, graph, tags, import_scope=None, **saver_kwargs):
      """Load ops and nodes from SavedModel MetaGraph into graph.
  
      Args:
        graph: tf.Graph object.
        tags: a set of string tags identifying a MetaGraphDef.
        import_scope: Optional `string` -- if specified, prepend this string
          followed by '/' to all loaded tensor names. This scope is applied to
          tensor instances loaded into the passed session, but it is *not* written
          through to the static `MetaGraphDef` protocol buffer that is returned.
        **saver_kwargs: keyword arguments to pass to tf.train.import_meta_graph.
  
      Returns:
        A tuple of
          * Saver defined by the MetaGraph, which can be used to restore the
            variable values.
          * List of `Operation`/`Tensor` objects returned from
            `tf.import_graph_def` (may be `None`).
      """
      meta_graph_def = self.get_meta_graph_def_from_tags(tags)
      if sys.byteorder == "big":
          saved_model_utils.swap_function_tensor_content(
              meta_graph_def, "little", "big"
          )
      with graph.as_default():
          return tf_saver._import_meta_graph_with_return_elements(  # pylint: disable=protected-access
              meta_graph_def, import_scope=import_scope, **saver_kwargs
          )
  
imports: import os
  import sys
  from google.protobuf import message
  from google.protobuf import text_format
  from tensorflow.core.framework import graph_debug_info_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow.python.framework import ops
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import constants
  from tensorflow.python.saved_model import path_helpers
  from tensorflow.python.saved_model import signature_def_utils
  from tensorflow.python.saved_model import utils_impl
  from tensorflow.python.saved_model.pywrap_saved_model import metrics
  from tensorflow.python.training import saver
  from tensorflow.python.util import compat
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 6 for calling the SavedModelLoader obj's underlying member method code with example usage: obj.load_graph(graph, tags, import_scope) and returns: tf_saver