aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/variable.proto
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-02-06 08:53:20 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2016-02-06 21:53:42 -0800
commit0269c3690b402c63100869cbb7f8a8ea190e8c0a (patch)
tree5a589b98fe4f22f298bc0bef1f731c6dc9128fb6 /tensorflow/core/framework/variable.proto
parent3fa9676bbc41826689e9b0e11a45e3fbdceae258 (diff)
Added export_meta_graph() and import_meta_graph() for
serializing/de-serializing the graph and other Python objects necessary restarting training, running eval, or running inference into a MetaGraphDef protocol buffer. MetaGraphDef contains the following: - MetaInfoDef: For storing version and other meta data associated with the meta graph. - GraphDef: The Graph. - SaverDef: The Saver. - CollectionDef * Int64List * FloatList * BytesList * NodeList * AnyList These are evolving APIs and subject to change. Change: 114026857
Diffstat (limited to 'tensorflow/core/framework/variable.proto')
-rw-r--r--tensorflow/core/framework/variable.proto30
1 files changed, 30 insertions, 0 deletions
diff --git a/tensorflow/core/framework/variable.proto b/tensorflow/core/framework/variable.proto
new file mode 100644
index 0000000000..3e46ff76b5
--- /dev/null
+++ b/tensorflow/core/framework/variable.proto
@@ -0,0 +1,30 @@
+syntax = "proto3";
+
+package tensorflow;
+// option cc_enable_arenas = true;
+
+// Protocol buffer representing a Variable.
+message VariableDef {
+ // Name of the variable tensor.
+ string variable_name = 1;
+
+ // Name of the initializer op.
+ string initializer_name = 2;
+
+ // Name of the snapshot tensor.
+ string snapshot_name = 3;
+
+ // Support for saving variables as slices of a larger variable.
+ SaveSliceInfoDef save_slice_info_def = 4;
+}
+
+message SaveSliceInfoDef {
+ // Name of the full variable of which this is a slice.
+ string full_name = 1;
+ // Shape of the full variable.
+ repeated int32 full_shape = 2;
+ // Offset of this variable into the full variable.
+ repeated int32 var_offset = 3;
+ // Shape of this variable.
+ repeated int32 var_shape = 4;
+}