aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework/importer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/framework/importer.py')
-rw-r--r--tensorflow/python/framework/importer.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tensorflow/python/framework/importer.py b/tensorflow/python/framework/importer.py
index 77d0822431..e409972b13 100644
--- a/tensorflow/python/framework/importer.py
+++ b/tensorflow/python/framework/importer.py
@@ -151,14 +151,15 @@ def _FindAttrInOpDef(attr_name, op_def):
def import_graph_def(graph_def, input_map=None, return_elements=None,
name=None, op_dict=None, producer_op_list=None):
- """Imports the TensorFlow graph in `graph_def` into the Python `Graph`.
+ """Imports the graph from `graph_def` into the current default `Graph`.
This function provides a way to import a serialized TensorFlow
[`GraphDef`](https://www.tensorflow.org/code/tensorflow/core/framework/graph.proto)
protocol buffer, and extract individual objects in the `GraphDef` as
- [`Tensor`](#Tensor) and [`Operation`](#Operation) objects. See
- [`Graph.as_graph_def()`](#Graph.as_graph_def) for a way to create a
- `GraphDef` proto.
+ [`Tensor`](#Tensor) and [`Operation`](#Operation) objects. Once extracted,
+ these objects are placed into the current default `Graph`. See
+ [`Graph.as_graph_def()`](#Graph.as_graph_def) for a way to create a `GraphDef`
+ proto.
Args:
graph_def: A `GraphDef` proto containing operations to be imported into