parameters: (filename=None,
                        meta_info_def=None,
                        graph_def=None,
                        saver_def=None,
                        collection_list=None,
                        as_text=False,
                        graph=None,
                        export_scope=None,
                        clear_devices=False,
                        clear_extraneous_savers=False,
                        **kwargs)
return_statement: return meta_graph_def
docstring: Returns `MetaGraphDef` proto. Optionally writes it to filename.
  
    This function exports the graph, saver, and collection objects into
    `MetaGraphDef` protocol buffer with the intention of it being imported
    at a later time or location to restart training, run inference, or be
    a subgraph.
  
    Args:
      filename: Optional filename including the path for writing the
        generated `MetaGraphDef` protocol buffer.
      meta_info_def: `MetaInfoDef` protocol buffer.
      graph_def: `GraphDef` protocol buffer.
      saver_def: `SaverDef` protocol buffer.
      collection_list: List of string keys to collect.
      as_text: If `True`, writes the `MetaGraphDef` as an ASCII proto.
      graph: The `Graph` to import into. If `None`, use the default graph.
      export_scope: Optional `string`. Name scope under which to extract
        the subgraph. The scope name will be striped from the node definitions
        for easy import later into new name scopes. If `None`, the whole graph
        is exported. graph_def and export_scope cannot both be specified.
      clear_devices: Whether or not to clear the device field for an `Operation`
        or `Tensor` during export.
      clear_extraneous_savers: Remove any Saver-related information from the
          graph (both Save/Restore ops and SaverDefs) that are not associated
          with the provided SaverDef.
      **kwargs: Optional keyed arguments.
  
    Returns:
      A `MetaGraphDef` proto.
  
    Raises:
      ValueError: When the `GraphDef` is larger than 2GB.
docstring_summary: Returns `MetaGraphDef` proto. Optionally writes it to filename.
docstring_tokens: Returns MetaGraphDef proto . Optionally writes it to filename .
function: def export_meta_graph(filename=None,
                        meta_info_def=None,
                        graph_def=None,
                        saver_def=None,
                        collection_list=None,
                        as_text=False,
                        graph=None,
                        export_scope=None,
                        clear_devices=False,
                        clear_extraneous_savers=False,
                        **kwargs):
    """Returns `MetaGraphDef` proto. Optionally writes it to filename.
  
    This function exports the graph, saver, and collection objects into
    `MetaGraphDef` protocol buffer with the intention of it being imported
    at a later time or location to restart training, run inference, or be
    a subgraph.
  
    Args:
      filename: Optional filename including the path for writing the
        generated `MetaGraphDef` protocol buffer.
      meta_info_def: `MetaInfoDef` protocol buffer.
      graph_def: `GraphDef` protocol buffer.
      saver_def: `SaverDef` protocol buffer.
      collection_list: List of string keys to collect.
      as_text: If `True`, writes the `MetaGraphDef` as an ASCII proto.
      graph: The `Graph` to import into. If `None`, use the default graph.
      export_scope: Optional `string`. Name scope under which to extract
        the subgraph. The scope name will be striped from the node definitions
        for easy import later into new name scopes. If `None`, the whole graph
        is exported. graph_def and export_scope cannot both be specified.
      clear_devices: Whether or not to clear the device field for an `Operation`
        or `Tensor` during export.
      clear_extraneous_savers: Remove any Saver-related information from the
          graph (both Save/Restore ops and SaverDefs) that are not associated
          with the provided SaverDef.
      **kwargs: Optional keyed arguments.
  
    Returns:
      A `MetaGraphDef` proto.
  
    Raises:
      ValueError: When the `GraphDef` is larger than 2GB.
    """
    if context.in_eager_mode():
      raise ValueError("Exporting/importing meta graphs is not supported when "
                       "eager execution is enabled. No graph exists when eager "
                       "execution is enabled.")
    meta_graph_def, _ = meta_graph.export_scoped_meta_graph(
        filename=filename,
        meta_info_def=meta_info_def,
        graph_def=graph_def,
        saver_def=saver_def,
        collection_list=collection_list,
        as_text=as_text,
        graph=graph,
        export_scope=export_scope,
        clear_devices=clear_devices,
        clear_extraneous_savers=clear_extraneous_savers,
        **kwargs)
    return meta_graph_def
function_tokens: def export_meta_graph ( filename = None , meta_info_def = None , graph_def = None , saver_def = None , collection_list = None , as_text = False , graph = None , export_scope = None , clear_devices = False , clear_extraneous_savers = False , * * kwargs ) : if context . in_eager_mode ( ) : raise ValueError ( "Exporting/importing meta graphs is not supported when " "eager execution is enabled. No graph exists when eager " "execution is enabled." ) meta_graph_def , _ = meta_graph . export_scoped_meta_graph ( filename = filename , meta_info_def = meta_info_def , graph_def = graph_def , saver_def = saver_def , collection_list = collection_list , as_text = as_text , graph = graph , export_scope = export_scope , clear_devices = clear_devices , clear_extraneous_savers = clear_extraneous_savers , * * kwargs ) return meta_graph_def