Package org.tensorflow.framework
Class VariableDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.VariableDef
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,VariableDefOrBuilder
public final class VariableDef
extends com.google.protobuf.GeneratedMessageV3
implements 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 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.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 com.google.protobuf.Descriptors.DescriptorName of the initializer op.com.google.protobuf.ByteStringName of the initializer op.Name of the tensor holding the variable's initial value.com.google.protobuf.ByteStringName of the tensor holding the variable's initial value.booleanWhether to represent this as a ResourceVariable.com.google.protobuf.Parser<VariableDef> 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.com.google.protobuf.ByteStringName 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.Name of the variable tensor.com.google.protobuf.ByteStringName of the variable tensor.inthashCode()booleanSupport for saving variables as slices of a larger variable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic VariableDef.Builderstatic VariableDef.BuildernewBuilder(VariableDef prototype) protected VariableDef.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static VariableDefparseDelimitedFrom(InputStream input) static VariableDefparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(byte[] data) static VariableDefparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(com.google.protobuf.ByteString data) static VariableDefparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(com.google.protobuf.CodedInputStream input) static VariableDefparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(InputStream input) static VariableDefparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VariableDefparseFrom(ByteBuffer data) static VariableDefparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VariableDef> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, 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 classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getVariableName
Name of the variable tensor.
string variable_name = 1;- Specified by:
getVariableNamein interfaceVariableDefOrBuilder- Returns:
- The variableName.
-
getVariableNameBytes
public com.google.protobuf.ByteString 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
public com.google.protobuf.ByteString 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
public com.google.protobuf.ByteString 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
public com.google.protobuf.ByteString 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 interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VariableDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VariableDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VariableDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VariableDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VariableDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-