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
build()
VariableDef
VariableDef.Builder
clear()
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
clone()
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 VariableDef.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public VariableDef.Builder clearInitialValueName ()

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

public VariableDef.Builder clearInitializerName ()

 Name of the initializer op.
 
string initializer_name = 2;

public VariableDef.Builder clearIsResource ()

 Whether to represent this as a ResourceVariable.
 
bool is_resource = 5;

public VariableDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public VariableDef.Builder clearSaveSliceInfoDef ()

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public VariableDef.Builder clearSnapshotName ()

 Name of the snapshot tensor.
 
string snapshot_name = 3;

public VariableDef.Builder clearSynchronization ()

 Indicates when a distributed variable will be synced.
 
.tensorflow.VariableSynchronization synchronization = 8;

public VariableDef.Builder clearTrainable ()

 Whether this variable should be trained.
 
bool trainable = 7;

public VariableDef.Builder clearVariableName ()

 Name of the variable tensor.
 
string variable_name = 1;

public VariableDef.Builder clone ()

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 VariableDef getDefaultInstanceForType ()

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

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

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;

public com.google.protobuf.ByteString getInitializerNameBytes ()

 Name of the initializer op.
 
string initializer_name = 2;

public boolean getIsResource ()

 Whether to represent this as a ResourceVariable.
 
bool is_resource = 5;

public SaveSliceInfoDef getSaveSliceInfoDef ()

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public SaveSliceInfoDef.Builder getSaveSliceInfoDefBuilder ()

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder ()

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public String getSnapshotName ()

 Name of the snapshot tensor.
 
string snapshot_name = 3;

public com.google.protobuf.ByteString getSnapshotNameBytes ()

 Name of the snapshot tensor.
 
string snapshot_name = 3;

public VariableSynchronization getSynchronization ()

 Indicates when a distributed variable will be synced.
 
.tensorflow.VariableSynchronization synchronization = 8;

public int getSynchronizationValue ()

 Indicates when a distributed variable will be synced.
 
.tensorflow.VariableSynchronization synchronization = 8;

public boolean getTrainable ()

 Whether this variable should be trained.
 
bool trainable = 7;

public String getVariableName ()

 Name of the variable tensor.
 
string variable_name = 1;

public com.google.protobuf.ByteString getVariableNameBytes ()

 Name of the variable tensor.
 
string variable_name = 1;

public boolean hasSaveSliceInfoDef ()

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public final boolean isInitialized ()

public VariableDef.Builder mergeFrom (com.google.protobuf.Message other)

public VariableDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public VariableDef.Builder mergeSaveSliceInfoDef (SaveSliceInfoDef value)

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public final VariableDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public VariableDef.Builder setAggregation (VariableAggregation value)

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

public VariableDef.Builder setAggregationValue (int value)

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

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

public VariableDef.Builder setInitialValueName (String value)

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

public VariableDef.Builder setInitialValueNameBytes (com.google.protobuf.ByteString value)

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

public VariableDef.Builder setInitializerName (String value)

 Name of the initializer op.
 
string initializer_name = 2;

public VariableDef.Builder setInitializerNameBytes (com.google.protobuf.ByteString value)

 Name of the initializer op.
 
string initializer_name = 2;

public VariableDef.Builder setIsResource (boolean value)

 Whether to represent this as a ResourceVariable.
 
bool is_resource = 5;

public VariableDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public VariableDef.Builder setSaveSliceInfoDef (SaveSliceInfoDef value)

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public VariableDef.Builder setSaveSliceInfoDef (SaveSliceInfoDef.Builder builderForValue)

 Support for saving variables as slices of a larger variable.
 
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;

public VariableDef.Builder setSnapshotName (String value)

 Name of the snapshot tensor.
 
string snapshot_name = 3;

public VariableDef.Builder setSnapshotNameBytes (com.google.protobuf.ByteString value)

 Name of the snapshot tensor.
 
string snapshot_name = 3;

public VariableDef.Builder setSynchronization (VariableSynchronization value)

 Indicates when a distributed variable will be synced.
 
.tensorflow.VariableSynchronization synchronization = 8;

public VariableDef.Builder setSynchronizationValue (int value)

 Indicates when a distributed variable will be synced.
 
.tensorflow.VariableSynchronization synchronization = 8;

public VariableDef.Builder setTrainable (boolean value)

 Whether this variable should be trained.
 
bool trainable = 7;

public final VariableDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public VariableDef.Builder setVariableName (String value)

 Name of the variable tensor.
 
string variable_name = 1;

public VariableDef.Builder setVariableNameBytes (com.google.protobuf.ByteString value)

 Name of the variable tensor.
 
string variable_name = 1;