diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-01-02 18:19:21 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-02 18:28:12 -0800 |
commit | da1588ccf5c62eccac8013673359ac15b43eb394 (patch) | |
tree | ca08b5eee9e81362aacdd15874cee00f2fb34ca8 /tensorflow/core/public | |
parent | a8041609f182db130953e123d7be4823ea13d05e (diff) |
meta_graph export: Add support to strip default valued attributes.
Following APIs now accept an additional argument (`strip_default_attrs`) to
enable/disable (default:disabled) stripping of default valued attributes in a NodeDef:
o meta_graph: export_meta_graph, create_meta_graph.
o saver: Saver.save, Saver.export_meta_graph.
o builder: SavedModelBuilder.add_meta_graph,
SavedModelBuilder.add_meta_graph_and_variables.
o estimator: Estimator.export_savedmodel.
Related changes:
o Pywrap C++ AreAttrValuesEqual to compare two AttrValue instances.
This allows for a single/canonical way of comparing AttrValues in C++/Python.
o Add a utility method to meta_graph.py to get the node def by name in a graph def.
o Update SavedModelBuilder documentation on relevance of strip_default_attrs flag.
PiperOrigin-RevId: 180619001
Diffstat (limited to 'tensorflow/core/public')
-rw-r--r-- | tensorflow/core/public/version.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/core/public/version.h b/tensorflow/core/public/version.h index d8e7df48c2..c037a9b122 100644 --- a/tensorflow/core/public/version.h +++ b/tensorflow/core/public/version.h @@ -91,10 +91,13 @@ limitations under the License. // 24. Deprecate lookup ops (v1) ops in favor of v2 (30may2017) // 25. Deprecate stack (v1) ops in favor of v2 (2017/6/15). // 25. Deprecate RandomPoisson (v1) ops in favor of v2 (2017/10/25). +// 26. Add a bool 'stripped_default_attrs' to MetaInfoDef indicating +// whether default-valued attrs have been stripped from the nodes in the +// GraphDef. (7dec2017) #define TF_GRAPH_DEF_VERSION_MIN_PRODUCER 0 #define TF_GRAPH_DEF_VERSION_MIN_CONSUMER 0 -#define TF_GRAPH_DEF_VERSION 24 +#define TF_GRAPH_DEF_VERSION 25 // Checkpoint compatibility versions (the versions field in SavedSliceMeta). // |