Class GPUOptions.Experimental.VirtualDevices
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.GPUOptions.Experimental.VirtualDevices
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, GPUOptions.Experimental.VirtualDevicesOrBuilder
- Enclosing class:
GPUOptions.Experimental
public static final class GPUOptions.Experimental.VirtualDevices
extends GeneratedMessageV3
implements GPUOptions.Experimental.VirtualDevicesOrBuilder
Configuration for breaking down a visible GPU into multiple "virtual" devices.Protobuf type
tensorflow.GPUOptions.Experimental.VirtualDevices- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for breaking down a visible GPU into multiple "virtual" devices.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 intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final Descriptors.DescriptorintgetDeviceOrdinal(int index) Virtual Device ordinal number determines the device ID of the device.intVirtual Device ordinal number determines the device ID of the device.Virtual Device ordinal number determines the device ID of the device.floatgetMemoryLimitMb(int index) Per "virtual" device memory limit, in MB.intPer "virtual" device memory limit, in MB.Per "virtual" device memory limit, in MB.intgetPriority(int index) Priority values to use with the virtual devices.intPriority values to use with the virtual devices.Priority values to use with the virtual devices.intfinal UnknownFieldSetinthashCode()protected GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(GPUOptions.Experimental.VirtualDevices prototype) protected ObjectparseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) parseFrom(ByteString data) parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) parseFrom(CodedInputStream input) parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 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
-
MEMORY_LIMIT_MB_FIELD_NUMBER
public static final int MEMORY_LIMIT_MB_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
DEVICE_ORDINAL_FIELD_NUMBER
public static final int DEVICE_ORDINAL_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getMemoryLimitMbList
Per "virtual" device memory limit, in MB. The number of elements in the list is the number of virtual devices to create on the corresponding visible GPU (see "virtual_devices" below). If empty and `num_virtual_devices_per_gpu` is not set, it will create single virtual device taking all available memory from the device. For the concept of "visible" and "virtual" GPU, see the comments for "visible_device_list" above for more information.
repeated float memory_limit_mb = 1;- Specified by:
getMemoryLimitMbListin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Returns:
- A list containing the memoryLimitMb.
-
getMemoryLimitMbCount
public int getMemoryLimitMbCount()Per "virtual" device memory limit, in MB. The number of elements in the list is the number of virtual devices to create on the corresponding visible GPU (see "virtual_devices" below). If empty and `num_virtual_devices_per_gpu` is not set, it will create single virtual device taking all available memory from the device. For the concept of "visible" and "virtual" GPU, see the comments for "visible_device_list" above for more information.
repeated float memory_limit_mb = 1;- Specified by:
getMemoryLimitMbCountin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Returns:
- The count of memoryLimitMb.
-
getMemoryLimitMb
public float getMemoryLimitMb(int index) Per "virtual" device memory limit, in MB. The number of elements in the list is the number of virtual devices to create on the corresponding visible GPU (see "virtual_devices" below). If empty and `num_virtual_devices_per_gpu` is not set, it will create single virtual device taking all available memory from the device. For the concept of "visible" and "virtual" GPU, see the comments for "visible_device_list" above for more information.
repeated float memory_limit_mb = 1;- Specified by:
getMemoryLimitMbin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The memoryLimitMb at the given index.
-
getPriorityList
Priority values to use with the virtual devices. Use the cuda function cudaDeviceGetStreamPriorityRange to query for valid range of values for priority. On a P4000 GPU with cuda 10.1, the priority range reported was 0 for least priority and -1 for greatest priority. If this field is not specified, then the virtual devices will be created with the default. If this field has values set, then the size of this must match with the above memory_limit_mb.
repeated int32 priority = 2;- Specified by:
getPriorityListin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Returns:
- A list containing the priority.
-
getPriorityCount
public int getPriorityCount()Priority values to use with the virtual devices. Use the cuda function cudaDeviceGetStreamPriorityRange to query for valid range of values for priority. On a P4000 GPU with cuda 10.1, the priority range reported was 0 for least priority and -1 for greatest priority. If this field is not specified, then the virtual devices will be created with the default. If this field has values set, then the size of this must match with the above memory_limit_mb.
repeated int32 priority = 2;- Specified by:
getPriorityCountin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Returns:
- The count of priority.
-
getPriority
public int getPriority(int index) Priority values to use with the virtual devices. Use the cuda function cudaDeviceGetStreamPriorityRange to query for valid range of values for priority. On a P4000 GPU with cuda 10.1, the priority range reported was 0 for least priority and -1 for greatest priority. If this field is not specified, then the virtual devices will be created with the default. If this field has values set, then the size of this must match with the above memory_limit_mb.
repeated int32 priority = 2;- Specified by:
getPriorityin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The priority at the given index.
-
getDeviceOrdinalList
Virtual Device ordinal number determines the device ID of the device. A Virtual device with a lower ordinal number always receives the a smaller device id. The phyiscal device id and location in the virtual device list is used to break ties.
repeated int32 device_ordinal = 3;- Specified by:
getDeviceOrdinalListin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Returns:
- A list containing the deviceOrdinal.
-
getDeviceOrdinalCount
public int getDeviceOrdinalCount()Virtual Device ordinal number determines the device ID of the device. A Virtual device with a lower ordinal number always receives the a smaller device id. The phyiscal device id and location in the virtual device list is used to break ties.
repeated int32 device_ordinal = 3;- Specified by:
getDeviceOrdinalCountin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Returns:
- The count of deviceOrdinal.
-
getDeviceOrdinal
public int getDeviceOrdinal(int index) Virtual Device ordinal number determines the device ID of the device. A Virtual device with a lower ordinal number always receives the a smaller device id. The phyiscal device id and location in the virtual device list is used to break ties.
repeated int32 device_ordinal = 3;- Specified by:
getDeviceOrdinalin interfaceGPUOptions.Experimental.VirtualDevicesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deviceOrdinal at the given index.
-
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
public static GPUOptions.Experimental.VirtualDevices parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(byte[] data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GPUOptions.Experimental.VirtualDevices parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GPUOptions.Experimental.VirtualDevices parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GPUOptions.Experimental.VirtualDevices parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
public static GPUOptions.Experimental.VirtualDevices.Builder newBuilder(GPUOptions.Experimental.VirtualDevices prototype) -
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected GPUOptions.Experimental.VirtualDevices.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent) - 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
-