VariableDef

public final class VariableDef

 Protocol buffer representing a Variable.
 
Protobuf type tensorflow.VariableDef

Nested Classes

class VariableDef.Builder
 Protocol buffer representing a Variable. 

Constants

int AGGREGATION_FIELD_NUMBER
int INITIALIZER_NAME_FIELD_NUMBER
int INITIAL_VALUE_NAME_FIELD_NUMBER
int IS_RESOURCE_FIELD_NUMBER
int SAVE_SLICE_INFO_DEF_FIELD_NUMBER
int SNAPSHOT_NAME_FIELD_NUMBER
int SYNCHRONIZATION_FIELD_NUMBER
int TRAINABLE_FIELD_NUMBER
int VARIABLE_NAME_FIELD_NUMBER

Public Methods

boolean
equals (Object obj)
VariableAggregation
getAggregation ()
 Indicates how a distributed variable will be aggregated.
int
getAggregationValue ()
 Indicates how a distributed variable will be aggregated.
static VariableDef
VariableDef
final static com.google.protobuf.Descriptors.Descriptor
String
getInitialValueName ()
 Name of the tensor holding the variable's initial value.
com.google.protobuf.ByteString
getInitialValueNameBytes ()
 Name of the tensor holding the variable's initial value.
String
getInitializerName ()
 Name of the initializer op.
com.google.protobuf.ByteString
getInitializerNameBytes ()
 Name of the initializer op.
boolean
getIsResource ()
 Whether to represent this as a ResourceVariable.
SaveSliceInfoDef
getSaveSliceInfoDef ()
 Support for saving variables as slices of a larger variable.
SaveSliceInfoDefOrBuilder
getSaveSliceInfoDefOrBuilder ()
 Support for saving variables as slices of a larger variable.
int
String
getSnapshotName ()
 Name of the snapshot tensor.
com.google.protobuf.ByteString
getSnapshotNameBytes ()
 Name of the snapshot tensor.
VariableSynchronization
getSynchronization ()
 Indicates when a distributed variable will be synced.
int
getSynchronizationValue ()
 Indicates when a distributed variable will be synced.
boolean
getTrainable ()
 Whether this variable should be trained.
final com.google.protobuf.UnknownFieldSet
String
getVariableName ()
 Name of the variable tensor.
com.google.protobuf.ByteString
getVariableNameBytes ()
 Name of the variable tensor.
boolean
hasSaveSliceInfoDef ()
 Support for saving variables as slices of a larger variable.
int
final boolean
static VariableDef.Builder
static VariableDef.Builder
VariableDef.Builder
static VariableDef
parseDelimitedFrom (InputStream input)
static VariableDef
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VariableDef
parseFrom (ByteBuffer data)
static VariableDef
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VariableDef
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VariableDef
parseFrom (com.google.protobuf.CodedInputStream input)
static VariableDef
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VariableDef
parseFrom (com.google.protobuf.ByteString data)
static VariableDef
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VariableDef
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
VariableDef.Builder
void
writeTo (com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int AGGREGATION_FIELD_NUMBER

Constant Value: 9

public static final int INITIALIZER_NAME_FIELD_NUMBER

Constant Value: 2

public static final int INITIAL_VALUE_NAME_FIELD_NUMBER

Constant Value: 6

public static final int IS_RESOURCE_FIELD_NUMBER

Constant Value: 5

public static final int SAVE_SLICE_INFO_DEF_FIELD_NUMBER

Constant Value: 4

public static final int SNAPSHOT_NAME_FIELD_NUMBER

Constant Value: 3

public static final int SYNCHRONIZATION_FIELD_NUMBER

Constant Value: 8

public static final int TRAINABLE_FIELD_NUMBER

Constant Value: 7

public static final int VARIABLE_NAME_FIELD_NUMBER

Constant Value: 1

Public Methods

public boolean equals (Object obj)

public VariableAggregation getAggregation ()

 Indicates how a distributed variable will be aggregated.
 
.tensorflow.VariableAggregation aggregation = 9;

public int getAggregationValue ()

 Indicates how a distributed variable will be aggregated.
 
.tensorflow.VariableAggregation aggregation = 9;

public static VariableDef getDefaultInstance ()

public VariableDef getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public String getInitialValueName ()

 Name of the tensor holding the variable's initial value.
 
string initial_value_name = 6;

public com.google.protobuf.ByteString getInitialValueNameBytes ()

 Name of the tensor holding the variable's initial value.
 
string initial_value_name = 6;

public String getInitializerName ()

 Name of the initializer op.
 
string initializer_name = 2;