public static final class GPUOptions.Experimental.Builder extends org.nd4j.shade.protobuf.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 org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder clear()
clear in interface org.nd4j.shade.protobuf.Message.Builderclear in interface org.nd4j.shade.protobuf.MessageLite.Builderclear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface org.nd4j.shade.protobuf.Message.BuildergetDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuildergetDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderpublic GPUOptions.Experimental build()
build in interface org.nd4j.shade.protobuf.Message.Builderbuild in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic GPUOptions.Experimental buildPartial()
buildPartial in interface org.nd4j.shade.protobuf.Message.BuilderbuildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic GPUOptions.Experimental.Builder clone()
clone in interface org.nd4j.shade.protobuf.Message.Builderclone in interface org.nd4j.shade.protobuf.MessageLite.Builderclone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface org.nd4j.shade.protobuf.Message.BuildersetField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField in interface org.nd4j.shade.protobuf.Message.BuilderclearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface org.nd4j.shade.protobuf.Message.BuilderclearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface org.nd4j.shade.protobuf.Message.BuildersetRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface org.nd4j.shade.protobuf.Message.BuilderaddRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom in interface org.nd4j.shade.protobuf.Message.BuildermergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder mergeFrom(GPUOptions.Experimental other)
public final boolean isInitialized()
isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilderisInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public GPUOptions.Experimental.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface org.nd4j.shade.protobuf.Message.BuildermergeFrom in interface org.nd4j.shade.protobuf.MessageLite.BuildermergeFrom in class org.nd4j.shade.protobuf.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(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface org.nd4j.shade.protobuf.Message.BuildersetUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>public final GPUOptions.Experimental.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.BuildermergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<GPUOptions.Experimental.Builder>Copyright © 2021. All rights reserved.