1 syntax = "proto3"; 2 3 package tensorflow; 4 option cc_enable_arenas = true; 5 option java_outer_classname = "VariableProtos"; 6 option java_multiple_files = true; 7 option java_package = "org.tensorflow.framework"; 8 9 // Protocol buffer representing a Variable. 10 message VariableDef { 11 // Name of the variable tensor. 12 string variable_name = 1; 13 14 // Name of the tensor holding the variable's initial value. 15 string initial_value_name = 6; 16 17 // Name of the initializer op. 18 string initializer_name = 2; 19 20 // Name of the snapshot tensor. 21 string snapshot_name = 3; 22 23 // Support for saving variables as slices of a larger variable. 24 SaveSliceInfoDef save_slice_info_def = 4; 25 26 // Whether to represent this as a ResourceVariable. 27 bool is_resource = 5; 28 } 29 30 message SaveSliceInfoDef { 31 // Name of the full variable of which this is a slice. 32 string full_name = 1; 33 // Shape of the full variable. 34 repeated int64 full_shape = 2; 35 // Offset of this variable into the full variable. 36 repeated int64 var_offset = 3; 37 // Shape of this variable. 38 repeated int64 var_shape = 4; 39 } 40