From 88cea2e02869b7e4343bfbf97847bd253341dcdf Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 16 Nov 2016 16:09:58 -0800 Subject: 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 --- tensorflow/core/framework/variable.proto | 6 +++--- 1 file 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; } -- cgit v1.2.3