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