tf.graph_util.import_graph_def

Imports the graph from graph_def into the current default Graph. (deprecated arguments)

Used in the notebooks

Used in the guide

This function provides a way to import a serialized TensorFlow GraphDef protocol buffer, and extract individual objects in the GraphDef as tf.Tensor and tf.Operation objects. Once extracted, these objects are placed into the current default Graph. See tf.Graph.as_graph_def for a way to create a GraphDef proto.

graph_def A GraphDef proto containing operations to be imported into the default graph.
input_map A dictionary mapping input names (as strings) in graph_def to Tensor objects. The values of the named input tensors in the imported graph will be re-mapped to the respective Tensor values.
return_elements