Class DeviceAttributes
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.DeviceAttributes
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, DeviceAttributesOrBuilder
Protobuf type
tensorflow.DeviceAttributes- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typetensorflow.DeviceAttributesNested 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 intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DeviceAttributesstatic final Descriptors.DescriptorString representation of device_type.String representation of device_type.longA device is assigned a global unique number each time it is initialized.Platform-specific data about device that may be useful for supporting efficient data transfers.Platform-specific data about device that may be useful for supporting efficient data transfers.longMemory capacity of device in bytes.getName()Fully specified name of the device within a cluster.Fully specified name of the device within a cluster.String representation of the physical device that this device maps to.String representation of the physical device that this device maps to.intfinal UnknownFieldSetlongA physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup.inthashCode()booleanPlatform-specific data about device that may be useful for supporting efficient data transfers.protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic DeviceAttributes.Builderstatic DeviceAttributes.BuildernewBuilder(DeviceAttributes prototype) protected DeviceAttributes.Builderprotected Objectstatic DeviceAttributesparseDelimitedFrom(InputStream input) static DeviceAttributesparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static DeviceAttributesparseFrom(byte[] data) static DeviceAttributesparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static DeviceAttributesparseFrom(ByteString data) static DeviceAttributesparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static DeviceAttributesparseFrom(CodedInputStream input) static DeviceAttributesparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static DeviceAttributesparseFrom(InputStream input) static DeviceAttributesparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static DeviceAttributesparseFrom(ByteBuffer data) static DeviceAttributesparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<DeviceAttributes> 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DEVICE_TYPE_FIELD_NUMBER
public static final int DEVICE_TYPE_FIELD_NUMBER- See Also:
-
MEMORY_LIMIT_FIELD_NUMBER
public static final int MEMORY_LIMIT_FIELD_NUMBER- See Also:
-
LOCALITY_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER- See Also:
-
INCARNATION_FIELD_NUMBER
public static final int INCARNATION_FIELD_NUMBER- See Also:
-
PHYSICAL_DEVICE_DESC_FIELD_NUMBER
public static final int PHYSICAL_DEVICE_DESC_FIELD_NUMBER- See Also:
-
XLA_GLOBAL_ID_FIELD_NUMBER
public static final int XLA_GLOBAL_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getName
Fully specified name of the device within a cluster.
string name = 1;- Specified by:
getNamein interfaceDeviceAttributesOrBuilder- Returns:
- The name.
-
getNameBytes
Fully specified name of the device within a cluster.
string name = 1;- Specified by:
getNameBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for name.
-
getDeviceType
String representation of device_type.
string device_type = 2;- Specified by:
getDeviceTypein interfaceDeviceAttributesOrBuilder- Returns:
- The deviceType.
-
getDeviceTypeBytes
String representation of device_type.
string device_type = 2;- Specified by:
getDeviceTypeBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for deviceType.
-
getMemoryLimit
public long getMemoryLimit()Memory capacity of device in bytes.
int64 memory_limit = 4;- Specified by:
getMemoryLimitin interfaceDeviceAttributesOrBuilder- Returns:
- The memoryLimit.
-
hasLocality
public boolean hasLocality()Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;- Specified by:
hasLocalityin interfaceDeviceAttributesOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;- Specified by:
getLocalityin interfaceDeviceAttributesOrBuilder- Returns:
- The locality.
-
getLocalityOrBuilder
Platform-specific data about device that may be useful for supporting efficient data transfers.
.tensorflow.DeviceLocality locality = 5;- Specified by:
getLocalityOrBuilderin interfaceDeviceAttributesOrBuilder
-
getIncarnation
public long getIncarnation()A device is assigned a global unique number each time it is initialized. "incarnation" should never be 0.
fixed64 incarnation = 6;- Specified by:
getIncarnationin interfaceDeviceAttributesOrBuilder- Returns:
- The incarnation.
-
getPhysicalDeviceDesc
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Specified by:
getPhysicalDeviceDescin interfaceDeviceAttributesOrBuilder- Returns:
- The physicalDeviceDesc.
-
getPhysicalDeviceDescBytes
String representation of the physical device that this device maps to.
string physical_device_desc = 7;- Specified by:
getPhysicalDeviceDescBytesin interfaceDeviceAttributesOrBuilder- Returns:
- The bytes for physicalDeviceDesc.
-
getXlaGlobalId
public long getXlaGlobalId()A physical device ID for use in XLA DeviceAssignments, unique across clients in a multi-client setup. Set to -1 if unavailable, non-negative otherwise.
int64 xla_global_id = 8;- Specified by:
getXlaGlobalIdin interfaceDeviceAttributesOrBuilder- Returns:
- The xlaGlobalId.
-
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 DeviceAttributes parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DeviceAttributes parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DeviceAttributes parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DeviceAttributes parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DeviceAttributes parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DeviceAttributes 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
-