VariableDef.Builder

public static final class VariableDef.Builder

 Protocol buffer representing a Variable.
 
Protobuf type tensorflow.VariableDef

Public Methods

VariableDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VariableDef
VariableDef
VariableDef.Builder
VariableDef.Builder
clearAggregation ()
 Indicates how a distributed variable will be aggregated.
VariableDef.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
VariableDef.Builder
clearInitialValueName ()
 Name of the tensor holding the variable's initial value.
VariableDef.Builder
clearInitializerName ()
 Name of the initializer op.
VariableDef.Builder
clearIsResource ()
 Whether to represent this as a ResourceVariable.
VariableDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
VariableDef.Builder
clearSaveSliceInfoDef ()
 Support for saving variables as slices of a larger variable.
VariableDef.Builder
clearSnapshotName ()
 Name of the snapshot tensor.
VariableDef.Builder
clearSynchronization ()
 Indicates when a distributed variable will be synced.
VariableDef.Builder
clearTrainable ()
 Whether this variable should be trained.
VariableDef.Builder
clearVariableName ()
 Name of the variable tensor.
VariableDef.Builder
VariableAggregation
getAggregation ()
 Indicates how a distributed variable will be aggregated.
int
getAggregationValue ()
 Indicates how a distributed variable will be aggregated.
VariableDef
final static com.google.protobuf.Descriptors.Descriptor
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.
SaveSliceInfoDef.Builder
getSaveSliceInfoDefBuilder ()
 Support for saving variables as slices of a larger variable.
SaveSliceInfoDefOrBuilder
getSaveSliceInfoDefOrBuilder ()
 Support for saving variables as slices of a larger variable.
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.
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.
final boolean
VariableDef.Builder
mergeFrom (com.google.protobuf.Message other)
VariableDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VariableDef.Builder
mergeSaveSliceInfoDef ( SaveSliceInfoDef value)
 Support for saving variables as slices of a larger variable.
final VariableDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
VariableDef.Builder
setAggregation ( VariableAggregation value)
 Indicates how a distributed variable will be aggregated.
VariableDef.Builder
setAggregationValue (int value)
 Indicates how a distributed variable will be aggregated.
VariableDef.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VariableDef.Builder
setInitialValueName (String value)
 Name of the tensor holding the variable's initial value.
VariableDef.Builder
setInitialValueNameBytes (com.google.protobuf.ByteString value)
 Name of the tensor holding the variable's initial value.
VariableDef.Builder
setInitializerName (String value)
 Name of the initializer op.
VariableDef.Builder
setInitializerNameBytes (com.google.protobuf.ByteString value)
 Name of the initializer op.
VariableDef.Builder
setIsResource (boolean value)
 Whether to represent this as a ResourceVariable.
VariableDef.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VariableDef.Builder
setSaveSliceInfoDef ( SaveSliceInfoDef value)
 Support for saving variables as slices of a larger variable.
VariableDef.Builder
setSaveSliceInfoDef ( SaveSliceInfoDef.Builder builderForValue)
 Support for saving variables as slices of a larger variable.
VariableDef.Builder
setSnapshotName (String value)
 Name of the snapshot tensor.
VariableDef.Builder
setSnapshotNameBytes (com.google.protobuf.ByteString value)
 Name of the snapshot tensor.
VariableDef.Builder
setSynchronization ( VariableSynchronization value)
 Indicates when a distributed variable will be synced.
VariableDef.Builder
setSynchronizationValue (int value)
 Indicates when a distributed variable will be synced.
VariableDef.Builder
setTrainable (boolean value)
 Whether this variable should be trained.
final VariableDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
VariableDef.Builder
setVariableName (String value)
 Name of the variable tensor.
VariableDef.Builder
setVariableNameBytes (com.google.protobuf.ByteString value)
 Name of the variable tensor.

Inherited Methods

Public Methods

public VariableDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public VariableDef build ()

public VariableDef buildPartial ()

public VariableDef.Builder clear ()

public VariableDef.Builder clearAggregation ()

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

public