Package org.platanios.tensorflow.proto
Interface VariableDefOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
VariableDef
,VariableDef.Builder
public interface VariableDefOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VariableAggregation
getAggregation()
Indicates how a distributed variable will be aggregated.int
getAggregationValue()
Indicates how a distributed variable will be aggregated.java.lang.String
getInitializerName()
Name of the initializer op.com.google.protobuf.ByteString
getInitializerNameBytes()
Name of the initializer op.java.lang.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.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.java.lang.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.java.lang.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getVariableName
java.lang.String getVariableName()
Name of the variable tensor.
string variable_name = 1;
- Returns:
- The variableName.
-
getVariableNameBytes
com.google.protobuf.ByteString getVariableNameBytes()
Name of the variable tensor.
string variable_name = 1;
- Returns:
- The bytes for variableName.
-
getInitialValueName
java.lang.String getInitialValueName()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;
- Returns:
- The initialValueName.
-
getInitialValueNameBytes
com.google.protobuf.ByteString getInitialValueNameBytes()
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;
- Returns:
- The bytes for initialValueName.
-
getInitializerName
java.lang.String getInitializerName()
Name of the initializer op.
string initializer_name = 2;
- Returns:
- The initializerName.
-
getInitializerNameBytes
com.google.protobuf.ByteString getInitializerNameBytes()
Name of the initializer op.
string initializer_name = 2;
- Returns:
- The bytes for initializerName.
-
getSnapshotName
java.lang.String getSnapshotName()
Name of the snapshot tensor.
string snapshot_name = 3;
- Returns:
- The snapshotName.
-
getSnapshotNameBytes
com.google.protobuf.ByteString getSnapshotNameBytes()
Name of the snapshot tensor.
string snapshot_name = 3;
- Returns:
- The bytes for snapshotName.
-
hasSaveSliceInfoDef
boolean hasSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.org.platanios.tensorflow.proto.SaveSliceInfoDef save_slice_info_def = 4;
- Returns:
- Whether the saveSliceInfoDef field is set.
-
getSaveSliceInfoDef
SaveSliceInfoDef getSaveSliceInfoDef()
Support for saving variables as slices of a larger variable.
.org.platanios.tensorflow.proto.SaveSliceInfoDef save_slice_info_def = 4;
- Returns:
- The saveSliceInfoDef.
-
getSaveSliceInfoDefOrBuilder
SaveSliceInfoDefOrBuilder getSaveSliceInfoDefOrBuilder()
Support for saving variables as slices of a larger variable.
.org.platanios.tensorflow.proto.SaveSliceInfoDef save_slice_info_def = 4;
-
getIsResource
boolean getIsResource()
Whether to represent this as a ResourceVariable.
bool is_resource = 5;
- Returns:
- The isResource.
-
getTrainable
boolean getTrainable()
Whether this variable should be trained.
bool trainable = 7;
- Returns:
- The trainable.
-
getSynchronizationValue
int getSynchronizationValue()
Indicates when a distributed variable will be synced.
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 8;
- Returns:
- The enum numeric value on the wire for synchronization.
-
getSynchronization
VariableSynchronization getSynchronization()
Indicates when a distributed variable will be synced.
.org.platanios.tensorflow.proto.VariableSynchronization synchronization = 8;
- Returns:
- The synchronization.
-
getAggregationValue
int getAggregationValue()
Indicates how a distributed variable will be aggregated.
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 9;
- Returns:
- The enum numeric value on the wire for aggregation.
-
getAggregation
VariableAggregation getAggregation()
Indicates how a distributed variable will be aggregated.
.org.platanios.tensorflow.proto.VariableAggregation aggregation = 9;
- Returns:
- The aggregation.
-
-