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,java.io.Serializable,VariableDefOrBuilder
public final class VariableDef extends com.google.protobuf.GeneratedMessageV3 implements VariableDefOrBuilder
Protocol buffer representing a Variable.Protobuf type
tensorflow.VariableDef- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVariableDef.BuilderProtocol buffer representing a Variable.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter -
Field Summary
Fields Modifier and Type Field Description static intAGGREGATION_FIELD_NUMBERstatic intINITIAL_VALUE_NAME_FIELD_NUMBERstatic intINITIALIZER_NAME_FIELD_NUMBERstatic intIS_RESOURCE_FIELD_NUMBERstatic intSAVE_SLICE_INFO_DEF_FIELD_NUMBERstatic intSNAPSHOT_NAME_FIELD_NUMBERstatic intSYNCHRONIZATION_FIELD_NUMBERstatic intTRAINABLE_FIELD_NUMBERstatic intVARIABLE_NAME_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)VariableAggregationgetAggregation()Indicates how a distributed variable will be aggregated.intgetAggregationValue()Indicates how a distributed variable will be aggregated.static VariableDefgetDefaultInstance()VariableDefgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetInitializerName()Name of the initializer op.com.google.protobuf.ByteStringgetInitializerNameBytes()Name of the initializer op.java.lang.StringgetInitialValueName()Name of the tensor holding the variable's initial value.com.google.protobuf.ByteStringgetInitialValueNameBytes()Name of the tensor holding the variable's initial value.booleangetIsResource()Whether to represent this as a ResourceVariable.com.google.protobuf.Parser<VariableDef>getParserForType()SaveSliceInfoDefgetSaveSliceInfoDef()Support for saving variables as slices of a larger variable.SaveSliceInfoDefOrBuildergetSaveSliceInfoDefOrBuilder()Support for saving variables as slices of a larger variable.intgetSerializedSize()java.lang.StringgetSnapshotName()Name of the snapshot tensor.com.google.protobuf.ByteStringgetSnapshotNameBytes()Name of the snapshot tensor.VariableSynchronizationgetSynchronization()Indicates when a distributed variable will be synced.intgetSynchronizationValue()Indicates when a distributed variable will be synced.booleangetTrainable()Whether this variable should be trained.com.google.protobuf.UnknownFieldSetgetUnknownFields()java.lang.StringgetVariableName()Name of the variable tensor.com.google.protobuf.ByteStringgetVariableNameBytes()Name of the variable tensor.inthashCode()booleanhasSaveSliceInfoDef()Support for saving variables as slices of a larger variable.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static VariableDef.BuildernewBuilder()static VariableDef.BuildernewBuilder(VariableDef prototype)VariableDef.BuildernewBuilderForType()protected VariableDef.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VariableDefparseDelimitedFrom(java.io.InputStream input)static VariableDefparseDelimitedFrom(java.io.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(java.io.InputStream input)static VariableDefparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VariableDefparseFrom(java.nio.ByteBuffer data)static VariableDefparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VariableDef>parser()VariableDef.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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 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, wait
-
Field Details
-
VARIABLE_NAME_FIELD_NUMBER
public static final int VARIABLE_NAME_FIELD_NUMBER- See Also:
- Constant Field Values
-
INITIAL_VALUE_NAME_FIELD_NUMBER
public static final int INITIAL_VALUE_NAME_FIELD_NUMBER- See Also:
- Constant Field Values
-
INITIALIZER_NAME_FIELD_NUMBER
public static final int INITIALIZER_NAME_FIELD_NUMBER- See Also:
- Constant Field Values
-
SNAPSHOT_NAME_FIELD_NUMBER
public static final int SNAPSHOT_NAME_FIELD_NUMBER- See Also:
- Constant Field Values
-
SAVE_SLICE_INFO_DEF_FIELD_NUMBER
public static final int SAVE_SLICE_INFO_DEF_FIELD_NUMBER- See Also:
- Constant Field Values
-
IS_RESOURCE_FIELD_NUMBER
public static final int IS_RESOURCE_FIELD_NUMBER- See Also:
- Constant Field Values
-
TRAINABLE_FIELD_NUMBER
public static final int TRAINABLE_FIELD_NUMBER- See Also:
- Constant Field Values
-
SYNCHRONIZATION_FIELD_NUMBER
public static final int SYNCHRONIZATION_FIELD_NUMBER- See Also:
- Constant Field Values
-
AGGREGATION_FIELD_NUMBER
public static final int AGGREGATION_FIELD_NUMBER- See Also:
- Constant Field Values
-
-
Method Details
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public java.lang.String 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VariableDef parseFrom(java.nio.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:
java.io.IOException
-
parseFrom
public static VariableDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
parseDelimitedFrom
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static VariableDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.IOException
-
parseFrom
public static VariableDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
parseFrom
public static VariableDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Throws:
java.io.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
-