Package org.tensorflow.framework
Class OpDef.AttrDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.OpDef.AttrDef
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,OpDef.AttrDefOrBuilder
- Enclosing class:
OpDef
public static final class OpDef.AttrDef
extends com.google.protobuf.GeneratedMessageV3
implements OpDef.AttrDefOrBuilder
Description of the graph-construction-time configuration of this Op. That is to say, this describes the attr fields that will be specified in the NodeDef.Protobuf type
tensorflow.OpDef.AttrDef- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescription of the graph-construction-time configuration of this Op.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 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 TypeMethodDescriptionbooleanThe set of allowed values.The set of allowed values.static OpDef.AttrDefA reasonable default for this attribute if the user does not supply a value.A reasonable default for this attribute if the user does not supply a value.Human-readable description.com.google.protobuf.ByteStringHuman-readable description.static final com.google.protobuf.Descriptors.DescriptorbooleanFor type == "int", this is a minimum value.longint64 minimum = 6;getName()A descriptive name for the argument.com.google.protobuf.ByteStringA descriptive name for the argument.com.google.protobuf.Parser<OpDef.AttrDef> intgetType()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).com.google.protobuf.ByteStringOne of the type names from attr_value.proto ("string", "list(string)", "int", etc.).booleanThe set of allowed values.booleanA reasonable default for this attribute if the user does not supply a value.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic OpDef.AttrDef.Builderstatic OpDef.AttrDef.BuildernewBuilder(OpDef.AttrDef prototype) protected OpDef.AttrDef.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static OpDef.AttrDefparseDelimitedFrom(InputStream input) static OpDef.AttrDefparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OpDef.AttrDefparseFrom(byte[] data) static OpDef.AttrDefparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OpDef.AttrDefparseFrom(com.google.protobuf.ByteString data) static OpDef.AttrDefparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OpDef.AttrDefparseFrom(com.google.protobuf.CodedInputStream input) static OpDef.AttrDefparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OpDef.AttrDefparseFrom(InputStream input) static OpDef.AttrDefparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static OpDef.AttrDefparseFrom(ByteBuffer data) static OpDef.AttrDefparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<OpDef.AttrDef> 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
DEFAULT_VALUE_FIELD_NUMBER
public static final int DEFAULT_VALUE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
HAS_MINIMUM_FIELD_NUMBER
public static final int HAS_MINIMUM_FIELD_NUMBER- See Also:
-
MINIMUM_FIELD_NUMBER
public static final int MINIMUM_FIELD_NUMBER- See Also:
-
ALLOWED_VALUES_FIELD_NUMBER
public static final int ALLOWED_VALUES_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
-
getName
A descriptive name for the argument. May be used, e.g. by the Python client, as a keyword argument name, and so should match the regexp "[a-z][a-z0-9_]+".
string name = 1;- Specified by:
getNamein interfaceOpDef.AttrDefOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A descriptive name for the argument. May be used, e.g. by the Python client, as a keyword argument name, and so should match the regexp "[a-z][a-z0-9_]+".
string name = 1;- Specified by:
getNameBytesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The bytes for name.
-
getType
One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Specified by:
getTypein interfaceOpDef.AttrDefOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()One of the type names from attr_value.proto ("string", "list(string)", "int", etc.).string type = 2;- Specified by:
getTypeBytesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The bytes for type.
-
hasDefaultValue
public boolean hasDefaultValue()A reasonable default for this attribute if the user does not supply a value. If not specified, the user must supply a value.
.tensorflow.AttrValue default_value = 3;- Specified by:
hasDefaultValuein interfaceOpDef.AttrDefOrBuilder- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
A reasonable default for this attribute if the user does not supply a value. If not specified, the user must supply a value.
.tensorflow.AttrValue default_value = 3;- Specified by:
getDefaultValuein interfaceOpDef.AttrDefOrBuilder- Returns:
- The defaultValue.
-
getDefaultValueOrBuilder
A reasonable default for this attribute if the user does not supply a value. If not specified, the user must supply a value.
.tensorflow.AttrValue default_value = 3;- Specified by:
getDefaultValueOrBuilderin interfaceOpDef.AttrDefOrBuilder
-
getDescription
Human-readable description.
string description = 4;- Specified by:
getDescriptionin interfaceOpDef.AttrDefOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Human-readable description.
string description = 4;- Specified by:
getDescriptionBytesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The bytes for description.
-
getHasMinimum
public boolean getHasMinimum()For type == "int", this is a minimum value. For "list(___)" types, this is the minimum length.
bool has_minimum = 5;- Specified by:
getHasMinimumin interfaceOpDef.AttrDefOrBuilder- Returns:
- The hasMinimum.
-
getMinimum
public long getMinimum()int64 minimum = 6;- Specified by:
getMinimumin interfaceOpDef.AttrDefOrBuilder- Returns:
- The minimum.
-
hasAllowedValues
public boolean hasAllowedValues()The set of allowed values. Has type that is the "list" version of the "type" field above (uses the "list" field of AttrValue). If type == "type" or "list(type)" above, then the "type" field of "allowed_values.list" has the set of allowed DataTypes. If type == "string" or "list(string)", then the "s" field of "allowed_values.list" has the set of allowed strings.
.tensorflow.AttrValue allowed_values = 7;- Specified by:
hasAllowedValuesin interfaceOpDef.AttrDefOrBuilder- Returns:
- Whether the allowedValues field is set.
-
getAllowedValues
The set of allowed values. Has type that is the "list" version of the "type" field above (uses the "list" field of AttrValue). If type == "type" or "list(type)" above, then the "type" field of "allowed_values.list" has the set of allowed DataTypes. If type == "string" or "list(string)", then the "s" field of "allowed_values.list" has the set of allowed strings.
.tensorflow.AttrValue allowed_values = 7;- Specified by:
getAllowedValuesin interfaceOpDef.AttrDefOrBuilder- Returns:
- The allowedValues.
-
getAllowedValuesOrBuilder
The set of allowed values. Has type that is the "list" version of the "type" field above (uses the "list" field of AttrValue). If type == "type" or "list(type)" above, then the "type" field of "allowed_values.list" has the set of allowed DataTypes. If type == "string" or "list(string)", then the "s" field of "allowed_values.list" has the set of allowed strings.
.tensorflow.AttrValue allowed_values = 7;- Specified by:
getAllowedValuesOrBuilderin interfaceOpDef.AttrDefOrBuilder
-
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 OpDef.AttrDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpDef.AttrDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static OpDef.AttrDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static OpDef.AttrDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static OpDef.AttrDef parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static OpDef.AttrDef 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 OpDef.AttrDef.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
-