diff --git a/tensorflow/g3doc/api_docs/python/framework.md b/tensorflow/g3doc/api_docs/python/framework.md index 68c99f0268f..3ca5054dec3 100644 --- a/tensorflow/g3doc/api_docs/python/framework.md +++ b/tensorflow/g3doc/api_docs/python/framework.md @@ -1676,7 +1676,7 @@ after calling this function will result in undefined behavior. - - - -### `tf.import_graph_def(graph_def, input_map=None, return_elements=None, name=None, op_dict=None)` {#import_graph_def} +### `tf.import_graph_def(graph_def, input_map=None, return_elements=None, name=None, op_dict=None, producer_op_list=None)` {#import_graph_def} Imports the TensorFlow graph in `graph_def` into the Python `Graph`. @@ -1703,6 +1703,12 @@ protocol buffer, and extract individual objects in the `GraphDef` as * `op_dict`: (Optional.) A dictionary mapping op type names to `OpDef` protos. Must contain an `OpDef` proto for each op type named in `graph_def`. If omitted, uses the `OpDef` protos registered in the global registry. +* `producer_op_list`: (Optional.) An `OpList` proto with the (possibly stripped) + list of `OpDef`s used by the producer of the graph. If provided, attrs + for ops in `graph_def` that are not in `op_dict` that have their default + value according to `producer_op_list` will be removed. This will allow + some more `GraphDef`s produced by later binaries to be accepted by + earlier binaries. ##### Returns: diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/tf.import_graph_def.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/tf.import_graph_def.md index 877afaf8e2a..0ff3d621d44 100644 --- a/tensorflow/g3doc/api_docs/python/functions_and_classes/tf.import_graph_def.md +++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/tf.import_graph_def.md @@ -1,4 +1,4 @@ -### `tf.import_graph_def(graph_def, input_map=None, return_elements=None, name=None, op_dict=None)` {#import_graph_def} +### `tf.import_graph_def(graph_def, input_map=None, return_elements=None, name=None, op_dict=None, producer_op_list=None)` {#import_graph_def} Imports the TensorFlow graph in `graph_def` into the Python `Graph`. @@ -25,6 +25,12 @@ protocol buffer, and extract individual objects in the `GraphDef` as * `op_dict`: (Optional.) A dictionary mapping op type names to `OpDef` protos. Must contain an `OpDef` proto for each op type named in `graph_def`. If omitted, uses the `OpDef` protos registered in the global registry. +* `producer_op_list`: (Optional.) An `OpList` proto with the (possibly stripped) + list of `OpDef`s used by the producer of the graph. If provided, attrs + for ops in `graph_def` that are not in `op_dict` that have their default + value according to `producer_op_list` will be removed. This will allow + some more `GraphDef`s produced by later binaries to be accepted by + earlier binaries. ##### Returns: