public static final class GPUOptions.Experimental.Builder extends com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder> implements GPUOptions.ExperimentalOrBuilder
tensorflow.GPUOptions.ExperimentalgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.github.os72.protobuf351.Descriptors.Descriptor getDescriptor()
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder clear()
clear in interface com.github.os72.protobuf351.Message.Builderclear in interface com.github.os72.protobuf351.MessageLite.Builderclear in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public com.github.os72.protobuf351.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.github.os72.protobuf351.Message.BuildergetDescriptorForType in interface com.github.os72.protobuf351.MessageOrBuildergetDescriptorForType in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental getDefaultInstanceForType()
getDefaultInstanceForType in interface com.github.os72.protobuf351.MessageLiteOrBuildergetDefaultInstanceForType in interface com.github.os72.protobuf351.MessageOrBuilderpublic GPUOptions.Experimental build()
build in interface com.github.os72.protobuf351.Message.Builderbuild in interface com.github.os72.protobuf351.MessageLite.Builderpublic GPUOptions.Experimental buildPartial()
buildPartial in interface com.github.os72.protobuf351.Message.BuilderbuildPartial in interface com.github.os72.protobuf351.MessageLite.Builderpublic GPUOptions.Experimental.Builder clone()
clone in interface com.github.os72.protobuf351.Message.Builderclone in interface com.github.os72.protobuf351.MessageLite.Builderclone in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder setField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
setField in interface com.github.os72.protobuf351.Message.BuildersetField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder clearField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field)
clearField in interface com.github.os72.protobuf351.Message.BuilderclearField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder clearOneof(com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.github.os72.protobuf351.Message.BuilderclearOneof in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder setRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.github.os72.protobuf351.Message.BuildersetRepeatedField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder addRepeatedField(com.github.os72.protobuf351.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.github.os72.protobuf351.Message.BuilderaddRepeatedField in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder mergeFrom(com.github.os72.protobuf351.Message other)
mergeFrom in interface com.github.os72.protobuf351.Message.BuildermergeFrom in class com.github.os72.protobuf351.AbstractMessage.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder mergeFrom(GPUOptions.Experimental other)
public final boolean isInitialized()
isInitialized in interface com.github.os72.protobuf351.MessageLiteOrBuilderisInitialized in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder mergeFrom(com.github.os72.protobuf351.CodedInputStream input, com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.github.os72.protobuf351.Message.BuildermergeFrom in interface com.github.os72.protobuf351.MessageLite.BuildermergeFrom in class com.github.os72.protobuf351.AbstractMessage.Builder<GPUOptions.Experimental.Builder>IOExceptionpublic List<GPUOptions.Experimental.VirtualDevices> getVirtualDevicesList()
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;getVirtualDevicesList in interface GPUOptions.ExperimentalOrBuilderpublic int getVirtualDevicesCount()
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;getVirtualDevicesCount in interface GPUOptions.ExperimentalOrBuilderpublic GPUOptions.Experimental.VirtualDevices getVirtualDevices(int index)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;getVirtualDevices in interface GPUOptions.ExperimentalOrBuilderpublic GPUOptions.Experimental.Builder setVirtualDevices(int index, GPUOptions.Experimental.VirtualDevices value)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder setVirtualDevices(int index, GPUOptions.Experimental.VirtualDevices.Builder builderForValue)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder addVirtualDevices(GPUOptions.Experimental.VirtualDevices value)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder addVirtualDevices(int index, GPUOptions.Experimental.VirtualDevices value)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder addVirtualDevices(GPUOptions.Experimental.VirtualDevices.Builder builderForValue)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder addVirtualDevices(int index, GPUOptions.Experimental.VirtualDevices.Builder builderForValue)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder addAllVirtualDevices(Iterable<? extends GPUOptions.Experimental.VirtualDevices> values)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder clearVirtualDevices()
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.Builder removeVirtualDevices(int index)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.VirtualDevices.Builder getVirtualDevicesBuilder(int index)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.VirtualDevicesOrBuilder getVirtualDevicesOrBuilder(int index)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;getVirtualDevicesOrBuilder in interface GPUOptions.ExperimentalOrBuilderpublic List<? extends GPUOptions.Experimental.VirtualDevicesOrBuilder> getVirtualDevicesOrBuilderList()
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;getVirtualDevicesOrBuilderList in interface GPUOptions.ExperimentalOrBuilderpublic GPUOptions.Experimental.VirtualDevices.Builder addVirtualDevicesBuilder()
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public GPUOptions.Experimental.VirtualDevices.Builder addVirtualDevicesBuilder(int index)
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public List<GPUOptions.Experimental.VirtualDevices.Builder> getVirtualDevicesBuilderList()
The multi virtual device settings. If empty (not set), it will create
single virtual device on each visible GPU, according to the settings
in "visible_device_list" above. Otherwise, the number of elements in the
list must be the same as the number of visible GPUs (after
"visible_device_list" filtering if it is set), and the string represented
device names (e.g. /device:GPU:<id>) will refer to the virtual
devices and have the <id> field assigned sequentially starting from 0,
according to the order they appear in this list and the "memory_limit"
list inside each element. For example,
visible_device_list = "1,0"
virtual_devices { memory_limit: 1GB memory_limit: 2GB }
virtual_devices {}
will create three virtual devices as:
/device:GPU:0 -> visible GPU 1 with 1GB memory
/device:GPU:1 -> visible GPU 1 with 2GB memory
/device:GPU:2 -> visible GPU 0 with all available memory
NOTE:
1. It's invalid to set both this and "per_process_gpu_memory_fraction"
at the same time.
2. Currently this setting is per-process, not per-session. Using
different settings in different sessions within same process will
result in undefined behavior.
repeated .tensorflow.GPUOptions.Experimental.VirtualDevices virtual_devices = 1;public boolean getUseUnifiedMemory()
If true, uses CUDA unified memory for memory allocations. If per_process_gpu_memory_fraction option is greater than 1.0, then unified memory is used regardless of the value for this field. See comments for per_process_gpu_memory_fraction field for more details and requirements of the unified memory. This option is useful to oversubscribe memory if multiple processes are sharing a single GPU while individually using less than 1.0 per process memory fraction.
bool use_unified_memory = 2;getUseUnifiedMemory in interface GPUOptions.ExperimentalOrBuilderpublic GPUOptions.Experimental.Builder setUseUnifiedMemory(boolean value)
If true, uses CUDA unified memory for memory allocations. If per_process_gpu_memory_fraction option is greater than 1.0, then unified memory is used regardless of the value for this field. See comments for per_process_gpu_memory_fraction field for more details and requirements of the unified memory. This option is useful to oversubscribe memory if multiple processes are sharing a single GPU while individually using less than 1.0 per process memory fraction.
bool use_unified_memory = 2;public GPUOptions.Experimental.Builder clearUseUnifiedMemory()
If true, uses CUDA unified memory for memory allocations. If per_process_gpu_memory_fraction option is greater than 1.0, then unified memory is used regardless of the value for this field. See comments for per_process_gpu_memory_fraction field for more details and requirements of the unified memory. This option is useful to oversubscribe memory if multiple processes are sharing a single GPU while individually using less than 1.0 per process memory fraction.
bool use_unified_memory = 2;public final GPUOptions.Experimental.Builder setUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
setUnknownFields in interface com.github.os72.protobuf351.Message.BuildersetUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public final GPUOptions.Experimental.Builder mergeUnknownFields(com.github.os72.protobuf351.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.github.os72.protobuf351.Message.BuildermergeUnknownFields in class com.github.os72.protobuf351.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>Copyright © 2018. All rights reserved.