aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/tensor_shape.proto
diff options
context:
space:
mode:
authorGravatar Manjunath Kudlur <keveman@gmail.com>2015-11-06 16:27:58 -0800
committerGravatar Manjunath Kudlur <keveman@gmail.com>2015-11-06 16:27:58 -0800
commitf41959ccb2d9d4c722fe8fc3351401d53bcf4900 (patch)
treeef0ca22cb2a5ac4bdec9d080d8e0788a53ed496d /tensorflow/core/framework/tensor_shape.proto
TensorFlow: Initial commit of TensorFlow library.
TensorFlow is an open source software library for numerical computation using data flow graphs. Base CL: 107276108
Diffstat (limited to 'tensorflow/core/framework/tensor_shape.proto')
-rw-r--r--tensorflow/core/framework/tensor_shape.proto29
1 files changed, 29 insertions, 0 deletions
diff --git a/tensorflow/core/framework/tensor_shape.proto b/tensorflow/core/framework/tensor_shape.proto
new file mode 100644
index 0000000000..8fe7cce13d
--- /dev/null
+++ b/tensorflow/core/framework/tensor_shape.proto
@@ -0,0 +1,29 @@
+// Protocol buffer representing the shape of tensors.
+
+syntax = "proto3";
+// option cc_enable_arenas = true;
+
+package tensorflow;
+
+// Dimensions of a tensor and the type of data it contains.
+message TensorShapeProto {
+ // One dimension of the tensor.
+ message Dim {
+ // Size of the tensor in that dimension.
+ int64 size = 1;
+
+ // Optional name of the tensor dimension.
+ string name = 2;
+ };
+
+ // Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x
+ // 40 2D tensor. The names are optional.
+ //
+ // The order of entries in "dim" matters: It indicates the layout of the
+ // values in the tensor in-memory representation.
+ //
+ // The first entry in "dim" is the outermost dimension used to layout the
+ // values, the last entry is the innermost dimension. This matches the
+ // in-memory layout of RowMajor Eigen tensors.
+ repeated Dim dim = 2;
+};