aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-11-16 16:09:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-16 16:23:54 -0800
commit88cea2e02869b7e4343bfbf97847bd253341dcdf (patch)
tree9da248993c7e88de4a53a67613c84b4b390c56d5
parent07519efb7829f1b2a6d41096c6c05f9938d53090 (diff)
Uses 64-bit integers for storing variable dimensions in SaveSliceInfoDef.
32-bit integers are not enough for representing large scale variables with more than ~2 billion elements. The change is backward compatible as the proto serialization of int32s is the same as int64s. Change: 139393418
-rw-r--r--tensorflow/core/framework/variable.proto6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/framework/variable.proto b/tensorflow/core/framework/variable.proto
index aa76d58741..e793f5a463 100644
--- a/tensorflow/core/framework/variable.proto
+++ b/tensorflow/core/framework/variable.proto
@@ -25,9 +25,9 @@ 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;
+ repeated int64 full_shape = 2;
// Offset of this variable into the full variable.
- repeated int32 var_offset = 3;
+ repeated int64 var_offset = 3;
// Shape of this variable.
- repeated int32 var_shape = 4;
+ repeated int64 var_shape = 4;
}