Class VariableDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.VariableDef
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, VariableDefOrBuilder
Protocol buffer representing a Variable.Protobuf type
tensorflow.VariableDef- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtocol buffer representing a Variable.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates how a distributed variable will be aggregated.intIndicates how a distributed variable will be aggregated.static VariableDefstatic final Descriptors.DescriptorName of the initializer op.Name of the initializer op.Name of the tensor holding the variable's initial value.Name of the tensor holding the variable's initial value.booleanWhether to represent this as a ResourceVariable.Support for saving variables as slices of a larger variable.Support for saving variables as slices of a larger variable.intName of the snapshot tensor.Name of the snapshot tensor.Indicates when a distributed variable will be synced.intIndicates when a distributed variable will be synced.booleanWhether this variable should be trained.final UnknownFieldSetName of the variable tensor.Name of the variable tensor.inthashCode()booleanSupport for saving variables as slices of a larger variable.protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic VariableDef.Builderstatic VariableDef.BuildernewBuilder(VariableDef prototype) protected VariableDef.Builderprotected Objectstatic VariableDefparseDelimitedFrom(InputStream input) static VariableDefparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(byte[] data) static VariableDefparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(ByteString data) static VariableDefparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(CodedInputStream input) static VariableDefparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(InputStream input) static VariableDefparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(ByteBuffer data) static VariableDefparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<VariableDef> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
VARIABLE_NAME_FIELD_NUMBER
public static final int VARIABLE_NAME_FIELD_NUMBER- See Also:
-
INITIAL_VALUE_NAME_FIELD_NUMBER
public static final int INITIAL_VALUE_NAME_FIELD_NUMBER- See Also:
-
INITIALIZER_NAME_FIELD_NUMBER
public static final int INITIALIZER_NAME_FIELD_NUMBER- See Also:
-
SNAPSHOT_NAME_FIELD_NUMBER
public static final int SNAPSHOT_NAME_FIELD_NUMBER- See Also:
-
SAVE_SLICE_INFO_DEF_FIELD_NUMBER
public static final int SAVE_SLICE_INFO_DEF_FIELD_NUMBER- See Also:
-
IS_RESOURCE_FIELD_NUMBER
public static final int IS_RESOURCE_FIELD_NUMBER- See Also:
-
TRAINABLE_FIELD_NUMBER
public static final int TRAINABLE_FIELD_NUMBER- See Also:
-
SYNCHRONIZATION_FIELD_NUMBER
public static final int SYNCHRONIZATION_FIELD_NUMBER- See Also:
-
AGGREGATION_FIELD_NUMBER
public static final int AGGREGATION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getVariableName
Name of the variable tensor.
string variable_name = 1;- Specified by:
getVariableNamein interfaceVariableDefOrBuilder- Returns:
- The variableName.
-
getVariableNameBytes
Name of the variable tensor.
string variable_name = 1;- Specified by:
getVariableNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for variableName.
-
getInitialValueName
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Specified by:
getInitialValueNamein interfaceVariableDefOrBuilder- Returns:
- The initialValueName.
-
getInitialValueNameBytes
Name of the tensor holding the variable's initial value.
string initial_value_name = 6;- Specified by:
getInitialValueNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for initialValueName.
-
getInitializerName
Name of the initializer op.
string initializer_name = 2;- Specified by:
getInitializerNamein interfaceVariableDefOrBuilder- Returns:
- The initializerName.
-
getInitializerNameBytes
Name of the initializer op.
string initializer_name = 2;- Specified by:
getInitializerNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for initializerName.
-
getSnapshotName
Name of the snapshot tensor.
string snapshot_name = 3;- Specified by:
getSnapshotNamein interfaceVariableDefOrBuilder- Returns:
- The snapshotName.
-
getSnapshotNameBytes
Name of the snapshot tensor.
string snapshot_name = 3;- Specified by:
getSnapshotNameBytesin interfaceVariableDefOrBuilder- Returns:
- The bytes for snapshotName.
-
hasSaveSliceInfoDef
public boolean hasSaveSliceInfoDef()Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;- Specified by:
hasSaveSliceInfoDefin interfaceVariableDefOrBuilder- Returns:
- Whether the saveSliceInfoDef field is set.
-
getSaveSliceInfoDef
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;- Specified by:
getSaveSliceInfoDefin interfaceVariableDefOrBuilder- Returns:
- The saveSliceInfoDef.
-
getSaveSliceInfoDefOrBuilder
Support for saving variables as slices of a larger variable.
.tensorflow.SaveSliceInfoDef save_slice_info_def = 4;- Specified by:
getSaveSliceInfoDefOrBuilderin interfaceVariableDefOrBuilder
-
getIsResource
public boolean getIsResource()Whether to represent this as a ResourceVariable.
bool is_resource = 5;- Specified by:
getIsResourcein interfaceVariableDefOrBuilder- Returns:
- The isResource.
-
getTrainable
public boolean getTrainable()Whether this variable should be trained.
bool trainable = 7;- Specified by:
getTrainablein interfaceVariableDefOrBuilder- Returns:
- The trainable.
-
getSynchronizationValue
public int getSynchronizationValue()Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;- Specified by:
getSynchronizationValuein interfaceVariableDefOrBuilder- Returns:
- The enum numeric value on the wire for synchronization.
-
getSynchronization
Indicates when a distributed variable will be synced.
.tensorflow.VariableSynchronization synchronization = 8;- Specified by:
getSynchronizationin interfaceVariableDefOrBuilder- Returns:
- The synchronization.
-
getAggregationValue
public int getAggregationValue()Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;- Specified by:
getAggregationValuein interfaceVariableDefOrBuilder- Returns:
- The enum numeric value on the wire for aggregation.
-
getAggregation
Indicates how a distributed variable will be aggregated.
.tensorflow.VariableAggregation aggregation = 9;- Specified by:
getAggregationin interfaceVariableDefOrBuilder- Returns:
- The aggregation.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VariableDef parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VariableDef parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VariableDef parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-